<template>
	<view class="container">
		<!-- 第一页 -->
		<view style="width: 100%;display: flex;justify-content: center;align-items: center;margin-top: 20rpx;"
			v-if="seedingArr.length>0 && taskSuccessTotal>0">
			<my-swiper :list="seedingArr"></my-swiper>
		</view>
		<!-- 头部进度条 -->
		<view class="head-progress" v-if="!taskSuccessTotal">
			<view class="strip">
				<!-- 第二层进度条的颜色 -->
				<view class="blue" :style="{width:progress+'%'}">
					<!-- （进度条显示的图片  样式：根据父元素进行相对定位 ，本身绝对定位 ） -->
					<image src="https://images.linglinggong.net/static/correctingIssue/progress3.gif" class="proImg"
						:style="'left:'+(progress-10)+'%'">
					</image>
					<!-- 显示是否正在输入是否可发布 -->
					<view class="text" :style="'left:'+(progress-10)+'%'">
						<text v-show='!(isNextFillin&&isFillin)'>正在输入</text>
						<text v-show="type != 'bohui' && isNextFillin&&isFillin">可发布</text>
					</view>
				</view>
			</view>
			<view class="next">
				<!-- 首次进入进度条的下一步图片 -->
				<image v-if="!isFillin" class="nextImg" src="https://images.linglinggong.net/next2.png"></image>
				<image v-show="isFillin" class="nextImg" src="https://images.linglinggong.net/nexttrue2.png"></image>
				<view class="next-head" style="width: 120rpx;"><text>下一步</text></view>
			</view>
			<view class="next nexttwo">
				<!-- 首次进入进度条的图片 -->
				<image v-show="!isFillin || !isNextFillin" class="nextImg"
					src="https://images.linglinggong.net/next2.png">
				</image>
				<image v-show="type != 'bohui' && isNextFillin&&isFillin" class="nextImg"
					src="https://images.linglinggong.net/nexttrue2.png">
				</image>
				<view class="next-head-fabu" style="width: 120rpx;"><text>发布</text></view>
			</view>
		</view>
		<view>
			<view class="base-info">
				<view class="item">
					<text class="leftText">方式</text>
					<view class="selcetSex1" style="width: 55%;">
						<view class="select1" style="background: none;">
							<text></text>
						</view>
						<view style="width:125rpx" :class="task.taskType=='1' ? 'selected1' : 'select1'"
							@click="changeTaskType('1')">
							<text>{{payTypeList[1]}}</text>
						</view>
						<view style="width:125rpx" :class="task.taskType=='0' ? 'selected1' : 'select1'"
							@click="changeTaskType('0')">
							<text>{{payTypeList[0]}}</text>
						</view>
					</view>
				</view>
				<view class="item" v-if="false">
					<view class="minimumWageInfo-view"><text class="leftText">保底工资 ({{minimumWage}}元/小时)</text>
						<image @click="isShowbaodiInfo=true" class="minimumWageInfo-image"
							src="http://images.linglinggong.net/icon3/explain-ps-text-jinpai.png" mode="aspectFill">
						</image>
					</view>
					<view class="selcetSex">
						<view :class="isMinimumWage==true ? 'selected' : 'select'"
							@click="isMinimumWage=!isMinimumWage"></view>
					</view>
				</view>
				<!-- 新增 -->
				<view class="item" v-if="task.taskType=='1'" style="height:98rpx">
					<view class="minimumWageInfo-view">
						<text class="leftText" style="min-width: 120rpx;">保底工资</text>
						<text style="font-size: 20rpx;color: #FE4B28;">(非必选)</text>
						<image @click="isShowbaodiInfo=true" class="minimumWageInfo-image"
							src="http://images.linglinggong.net/icon3/explain-ps-text-jinpai.png" mode="aspectFill">
						</image>
					</view>
					<view class="selcetSex1" style="width: 57%;">
						<view :class="isBaodiChange==1 ? 'selected3' : 'select3'" @click="baodiChange(1,formBaodi[0])">
							<text style="font-size: 26rpx;">{{maxObj.min }}元/时</text>
						</view>
						<view :class="isBaodiChange==2 ? 'selected3' : 'select3'" @click="baodiChange(2,formBaodi[1])">
							<text style="font-size: 26rpx;">{{maxObj.medium}}元/时</text>
						</view>
						<view :class="isBaodiChange==3 ? 'selected3' : 'select3'" @click="baodiChange(3,formBaodi[2])">
							<text style="font-size: 26rpx;">{{maxObj.max }}元/时</text>
						</view>
					</view>
				</view>
				<view class="item">
					<text class="leftText">工价</text>
					<input class="iptstyle" type="digit" v-model="task.reward" @input="reward"
						v-if="task.taskType == '0'"
						placeholder-style="width: 108rpx; height: 68rpx;color: #ABABAB;font-size: 28rpx;font-weight: 500;line-height: 45rpx;" />
					<input class="iptstyle" type="digit" v-model="task.jijian" @input="reward"
						v-if="task.taskType == '1'" @blur="handBlur"
						placeholder-style="width: 108rpx; height: 68rpx;color: #ABABAB;font-size: 28rpx;font-weight: 500;line-height: 45rpx;" />
					<text
						style="margin-right: 30rpx; color: #402110;font-size: 28rpx;font-weight: 500;line-height: 45rpx;">元</text>
				</view>
			</view>
			<view class="RecommendedItem2" style="border-radius:0 0 24rpx 24rpx ;" v-show="task.taskType==0">
				<view class="RecommendedBar" style="margin-top:0">
					<view class="progressMove">
						<view class="pimg-next pimg-next-w">
							<text>￥{{ maxObj.min }}</text>
						</view>
						<view class="pimg-next pimg-next-t">
							<text>￥22</text>
						</view>
						<view class="pimg-next pimg-next-s">
							<text>￥45</text>
						</view>
						<view class="wages" @touchstart="progressTouchStart" @touchmove="progressTouchMove"
							@touchend="progressTouchEnd" :style="{ left: widthMove + 'rpx' }">
							<view class="wages-color" :style="{

							         '--bg': `${widthMove<=102?'#FC491E':widthMove>102&&widthMove<=309?'#FCB726':widthMove>309&&widthMove<=600?'#509900':''}`

							        }" :class="widthMove<=102?'wages-r':widthMove>102&&widthMove<=309?'wages-h':widthMove>309&&widthMove<=600?'wages-z':''">
								{{moveText}}
							</view>
							<image class="p-img" v-show="widthMove<=102?true:false" style="width: 32rpx;height: 32rpx;"
								src="https://images.linglinggong.net/red1.png" mode=""></image>
							<image class="p-img" v-show="widthMove>102&&widthMove<=309?true:false"
								style="width: 32rpx;height: 32rpx;" src="https://images.linglinggong.net/yellow.png"
								mode="">
							</image>
							<image class="p-img" v-show="widthMove>309&&widthMove<=600?true:false"
								style="width: 32rpx;height: 32rpx;" src="https://images.linglinggong.net/green.png"
								mode="">
							</image>
						</view>
					</view>
				</view>
			</view>
			<view class="new-g-w" style="border-radius:0 0 24rpx 24rpx">
				<view class="new-g-w-p" v-if="newMsk" @click="newMsk=false">
					<image src="http://images.linglinggong.net/FjGSIa19Yir5xl4IwiKUk2CEozYE" mode="widthFix">
					</image>
				</view>
				<view class="gwyq-checkbox" style="border-radius: 24rpx 24rpx 0 0">
					<view v-if="gwyqCheckboxItem"
						:class="gwyqCheckboxItemSelected.includes(`#${item}#`)?'gwyq-checkbox-item-selected':'gwyq-checkbox-item'"
						@click="gwyqCheckboxItemClick(item)" v-for="(item,index) in gwyqCheckboxItem" :key="index">
						{{item}}
					</view>
				</view>
				<view
					style="width: 100%;display: flex;justify-content: center;align-items: center;	background: #FFFFFF;">
					<textarea class="post-content" maxlength="50" v-model="task.taskContent" @input="taskContentInput"
						:placeholder="task.taskType == '0'?'可以继续补充要求，内容请不要包含任何通讯类信息~':'计件任务，请上传视频并填写岗位要求(必填); 但不要包含任何通讯信息～'"
						:placeholder-style="{'color': task.taskType == '0'?'#ABABAB':'#E65437','font-size': '28rpx','font-weight': '500','line-height': '45rpx'}"></textarea>
				</view>
				<!-- 岗位图片 -->
				<view class="post-pics">
					<view v-for="(picture, index) in pictureList" :key="index">
						<image class="close" src="https://images.linglinggong.net/17.png" mode="aspectFill"
							@click="handleDelete(index)">
						</image>
						<image class="picture" :src="imgPath + picture" mode="aspectFill"></image>
					</view>
					<view v-if="pictureList.length < 3 || (!task.taskVideo)">
						<image src="https://images.linglinggong.net/17.png" mode="aspectFill" @click="handleUpload">
						</image>
					</view>
				</view>
				<!-- 岗位视频 -->
				<view class="post-video" style="border-radius:0 0 24rpx 24rpx" v-show="!isShowPay">
					<view v-if="task.taskVideo">
						<video :src="imgPath + task.taskVideo"></video>
						<view class="deleteVideo" @click="handleDeleteVideo">删除视频</view>
					</view>
				</view>
			</view>
			<view class="miandarao">
				<view class="miandarao-info">
					<text>无需电话沟通，直接上门服务</text>
					<!-- <text>雇员接单时,将不会电话沟通,直接上门服务</text> -->
				</view>
				<view class="miandarao-button" :class="task.disturbstatus==1?'miandarao-button-selected':''"
					@click="handleSt">
					<view class="miandarao-button-switch"></view>
				</view>
			</view>
			<view class="youxian-content" v-if="isOpenYouxian">
				<view class="youxian">
					<view v-show="!isYouxian" class="radio" @click="isYouxian = true">
					</view>
					<image v-show="isYouxian" @click="isYouxian = false" src="https://images.linglinggong.net/radio.png"
						mode=""></image>
					<text>优先推送给我收藏与好评过的零工</text>
				</view>
				<view class="sanjiao" v-if="isQipao">
				</view>
				<view class="youxian-qipao" v-if="isQipao" @click="isQipao=false"> 优先通知您的收藏零工接单 </view>
			</view>
		</view>
		<!-- 发布 -->
		<!-- <view class="hg-30"></view> -->
		<view :class="[isNextFillin ? 'nextPage':'nextPageNofill']" @click="isNextFillin?hesuanFaBu(0):fabuClick()">
			{{`${task.taskType == 0?task.reward+'元/时':task.jijian+'元/件' } 确认发布`}}
		</view>
		<view :class="[isNextFillin ? 'nextPage':'nextPageNofill']" v-show="type =='bohui' && isShowNextPage"
			@click="isNextFillin?hesuanFaBu(1):''">重新发布 </view>
		<view style="height: 73rpx;"></view>
		<!-- 年龄选择弹窗 -->
		<view class="showTjjgMask" v-show="isShowselectJobAge" @touchmove.stop.prevent="moveHandle">
			<view class="selectJobAge">
				<view class="selectJobAge-header">
					<text @click="isShowselectJobAge=false">取消</text>
					<text>年龄区间</text>
					<text @click="selectJobAgeOK(isSelectJobAge)">确定</text>
					<view class="selectJobAge-body">
						<view class="selectJobAge-item"
							:style="{backgroundColor : isSelectJobAge==0 ? '#FCC928':'#F2F2F2'}"
							@click="isSelectJobAge=0">18&nbsp;-&nbsp;不限</view>
						<view class="selectJobAge-item"
							:style="{backgroundColor : isSelectJobAge==1 ? '#FCC928':'#F2F2F2'}"
							@click="isSelectJobAge=1">20&nbsp;-&nbsp;35岁</view>
						<view class="selectJobAge-item"
							:style="{backgroundColor : isSelectJobAge==2 ? '#FCC928':'#F2F2F2'}"
							@click="isSelectJobAge=2">25&nbsp;-&nbsp;45岁</view>
					</view>
				</view>
			</view>
		</view>
		<!-- 推荐价格弹窗 -->
		<view class="showTjjgMask" v-show="isShowtjjg" @touchmove.stop.prevent="moveHandle">
			<view class="showTjjg">
				<text class="showTjjgText">工价推荐</text>
				<text class="showTjjgWorkTimeText">工时{{workTime}}小时，为您推荐以下工价</text>
				<view :style="{backgroundColor:task.reward>=competitives[2]?'#cff2cc':''}" class="showTjjgView-gao"
					@click="task.reward=competitives[2],isShowtjjg=false">
					<view class="tuijian">秒接单</view>
					<view>
						<text>￥</text>
						<text>{{competitives[2]}}</text>
						<text>工价竞争力</text>
						<text>高</text>
					</view>
				</view>
				<view
					:style="{'background-color':competitives[2]>task.reward&&task.reward>competitives[0]?'#fff0d3':''}"
					class="showTjjgView-zhong" @click="task.reward=competitives[1],isShowtjjg=false">
					<view>
						<text>￥</text>
						<text>{{competitives[1]}}</text>
						<text>工价竞争力</text>
						<text>中</text>
					</view>
				</view>
				<view :style="{'background-color':task.reward<=competitives[0]?'#ffdad6':''}" class="showTjjgView-di"
					@click="task.reward=competitives[0],isShowtjjg=false">
					<view>
						<text>￥</text>
						<text>{{competitives[0]}}</text>
						<text>工价竞争力</text>
						<text>低</text>
					</view>
				</view>
			</view>
			<image @click="isShowtjjg=false" style="margin-top: 40rpx; width: 68rpx; height: 68rpx;"
				src="http://images.linglinggong.net/icon1/07.png" mode="aspectFill"></image>
		</view>
		<u-popup :show="isShowHesuan" mode="center" :closeOnClickOverlay="true" bgColor="rgba(0,0,0,0)">
			<view class="he-suan">
				<view class="he-suan-box">
					<view class="he-suan-box-top">
						<view class="he-suan-box-top-left" @click="hanldIndexClick(1)"
							:class="[styleType==1?'he-suan-box-top-left2' : '' ]">
							<text>24小时</text>
						</view>
						<view class="he-suan-box-top-left" @click="hanldIndexClick(2)"
							:class="[styleType==2?'he-suan-box-top-left2' : '' ]">
							<text>48小时</text>
						</view>
					</view>
					<view class="he-suan-box-bottom">
						<view class="he-suan-box-bottom-left" @click="hesuanFaBu2('no')"> 不需要 </view>
						<view @click="hesuanFaBu2('yes')" class="he-suan-box-bottom-left"
							style="color: #fff;background:#36D7A5;padding: 2rpx 2rpx;"> 立即发布 </view>
					</view>
				</view>
			</view>
		</u-popup>
		<!-- 工作名称弹框 -->
		<view class="task-name-modal" v-show="screenFlag">
			<!-- 遮罩层 -->
			<view class="mask" :class="screenFlag ? 'show' : ''" @touchmove.stop.prevent="moveHandle"
				@click="hideModal">
			</view>
			<!-- 白色筛选框 -->
			<view class="screen" @touchmove.stop.prevent="moveHandle">
				<!--  -->
				<view class="filter-screen" :class="screenFlag ? 'show' : ''">
					<view style="width: 100%;">
						<view class="task-title" style="margin-top: 20rpx;">发布历史</view>
						<view class="task-div">
							<view class="task-div-inner" v-for="(item, index) in myTasks" :key="index"
								@click="handleGetName(item)">
								<view class="task-content1">
									<text>{{item}}</text>
								</view>
							</view>
						</view>
						<view class="task-title"
							style="margin-top: 40rpx;display: flex;justify-content: space-between;align-items: center;margin-right: 30rpx;">
							<text>热门任务</text>
							<view style="display: flex;justify-content: center;align-items: center;"
								@click="changeNext">
								<u-icon color="#CECECE" name="reload"></u-icon>
								<text style="font-size: 24rpx;color: #CECECE;margin-left: 6rpx;">换一批</text>
							</view>
						</view>
						<view class="task-div"
							style="flex-wrap: wrap;height: 160rpx;overflow: hidden;display: flex;align-items: flex-start;">
							<view class="task-div-inner" style="margin-bottom: 40rpx;margin-top: 4rpx;"
								v-for="(item, index) in hotTasks" :key="index" @click="handleGetName(item.name)">
								<view class="task-content1">
									<view class="task-content1-hot" v-if="item.isHot">
										<text>热</text>
									</view>
									<text>{{item.name}}</text>
								</view>
							</view>
						</view>
					</view>
				</view>
			</view>
		</view>
		<view class="baodimask" @touchmove.stop.prevent v-show="isShowbaodiInfo" @click="isShowbaodiInfo=false">
			<view class="baodimask-alert">
				<image class="baodimask-alert-close" @click="isShowbaodiInfo=false"
					src="http://images.linglinggong.net/icon3/gb.png" mode="aspectFill"></image>
				<view class="baodimask-alert-content">
					<image class="baodimask-alert-content-alertimage"
						src="http://images.linglinggong.net/icon3/213123.png" mode="aspectFill"></image>
					<view class="baodimask-alert-content-text">根据《劳工法》最新规定，平台使用当地最低工价推出保底服务。</view>
					<view @click="isShowbaodiInfo=false" class="baodimask-alert-content-buton">知道了</view>
				</view>
			</view>
		</view>
		<jobPay v-if="isShowPay" :get-task-id="newTaskId" @closePayPage="isShowPay=false"></jobPay>
		<timeSelect v-if="isShowTimeSelect" @close="isShowTimeSelect=false" :timeFlag="timeFlag"
			@getTaskTime="getTaskTime"></timeSelect>
		<XinRenFaDan></XinRenFaDan>
		<!-- 信息补充 -->
		<!-- <GuZhuXinXiBuChong :RealName="RealName"></GuZhuXinXiBuChong> -->
		<realNameC ref="popup"></realNameC>
	</view>
</template>
<script>
	import {
		isTaskTomorrow,
		getMonthCardInfo_card_list
	} from '@/libs/unit.js'
	// import permision from "@/common/permission.js"
	// import GuZhuXinXiBuChong from '../components/Information-supplement/GuZhuXinXiBuChong.vue'
	import realNameC from '@/components/realName/realName'
	import findKey from '@/libs/find-key.js'
	import format from '@/libs/day-format.js'
	import md5 from '@/store/md5.js'
	import jobPay from '../send-job-pay/send-job-pay-new.vue'
	import recommendSalary from '../../../store/recommendSalary.js'
	// import timeSelect from '../../../components/timeSelect/timeSelect.vue'
	// import timeSelect from '@/components/time-select/time-select.vue'
	import timeSelect from '@/components/time-select/time-issure.vue'
	import showModalButton from '../../../components/showModalButton/showModalButton.vue'
	import Voice from '@/libs/QS-baiduyy.js'
	import XinRenFaDan from "../components/Tips-for-novice/Tips-for-novice.vue"
	import zbTooltip from '@/components/zb-tooltip/zb-tooltip.vue'
	import mySwiper from '@/components/beckhayu-swiper/my-swiper.vue'
	// import amap from '@/config/amap-wx.130.js';
	export default {
		data() {
			return {
				phoneModel: '',
				latitude: '',
				longitude: '',
				historyReward1: '',
				reward1: '',
				newMsk: false,
				showKey: false, // 键盘
				isClick: true, //键盘
				keyList: [1, 2, 3, 4, 5, 6, 7, 8, 9, '.', 0, '×'], //键盘数据
				slideInDown: null, //键盘
				taskSuccessTotal: '', //用户是否首次登录
				showAddHistory: false,
				moveText: '成功率低',
				widthMove: -22,
				startX: 0,
				progress: 15, //首次进入进度条
				choiceWorkType: { //用户选择的工种
					label: '请选择工种',
					value: 0,
				},
				isWorkType: false, //是否显示工种选择窗口
				workTypeList: [], //用工工种
				checkLocationStatus: 1, // 是否有定位授权 1 有定位
				idCar: true,
				idCardStatus: "", //身份证返回状态
				issuanceNum: '', //发单量
				RealName: '',
				truexianshizt: 'relative',
				textlie: "",
				truexianshi: 'none',
				serverFlag: 0, //0:付诚意金，1付服务费
				time_tip: '', //计时时薪建议
				hasFlag: true, //是否加载完成
				piece_tip: '', //计件保底时薪文案
				screenFlag: false, // 弹窗开关
				myTasks: [], //我最近的三个工作任务
				hotTasks: [], //热门工作标签
				bond: '', //保证金
				valueStart: [0, 0],
				valueEnd: [0, 0],
				imgPath: '', //图片路径
				uploadToken: '', // 上传图片需要的Token
				pictureList: [], // 发布的图片列表
				timeFlag: 0, // 0 今天 1明天
				payTypeList: ['计时', '计件'], //报酬方式0, '计天'
				sexList: ['不限', '男', '女'],
				timeList: [
					[],
					[]
				],
				today: '',
				tomorrow: '',
				startHour: '',
				startMinute: '',
				endHour: '',
				endMinute: '',
				showS: false,
				historyAddress: '',
				historyLocation: '',
				historyLat: '',
				historyLng: '',
				historyRegion: '',
				workTime: 0, //工作时长
				task: {
					//上传参数
					address: "",
					endTime: "",
					lat: "",
					lng: "",
					name: "",
					number: 0,
					region: "", //街道区域自己算
					reward: "",
					jijian: "",
					sex: 2,
					startTime: "",
					// "status": '',
					taskContent: "",
					taskPic: "",
					taskType: "0",
					floorsAmount: 16, //保底时薪0
					taskVideo: "", //视频
					telephone: "", //电话
					age: 0, //年龄区间
					ageMax: "", //最大年龄
					ageMin: "", //最小年龄
					competitive: 0, //3高2中1低
					disturbstatus: 0, //0不免打扰 1 免打扰 默认0
					tasklabel: "",
				},
				requestObj: {
					pageNum: 0,
					pageSize: 10,
					userId: '',
					status: '',
					userId: '',
					isAsc: 'desc',
					orderByColumn: 'createTime',
				},
				requestObj: {
					pageNum: 0,
					pageSize: 10,
					userId: '',
					status: '',
					userId: '',
					isAsc: 'desc',
					orderByColumn: 'createTime',
				},
				taskId: '', //重新发单之前的taskId
				type: '', //重新发单new,修改old，新发布是''
				isDisabled: false, //人数是否能变动
				src: 'file:///storage/emulated/0/DCIM/Screenshots/Record_2020-08-30-15-42-37.mp4', //
				time_lowest_amount: -1, //计时最低时薪
				ShowAdd: '', //用户自填的详细地址
				isShowselectJobAge: false, //是否显示年龄选择框
				isShowMoreInfo: false, //是否展示详细信息
				isSelectJobAge: 0, //年龄区间
				isShowNextPage: false, //是否显示下一页
				isFillin: false, //第一页是否都填写完毕
				isNextFillin: false, //第二页是否都填写完毕
				timeFlags: '', //唯一发送的标识
				isShowtjjg: false, //是否显示推荐价格
				isShowPay: false, //是否显示付款窗口
				newTaskId: '', //发布任务的id
				ishourChange: false, //监控时间选择器的小时列是否变动
				competitive: 0, //3高2中1低
				competitives: [], //高中低价格范围数组
				isShowTaskDrafts: false, //是否弹出草稿对话框
				titleTextTop: 0,
				timer: "",
				isRecordTaskDrafts: true, //是否记录历史记录
				minNumber: 0, //最小用工人数
				updatedCount: 2, //首页updata次数
				isInvitation: false, //是否邀请
				InvUsers: [], //邀请的用户列表
				wdfb: false,
				day0: 0,
				hour: 0,
				minute: 0,
				minflag: 0,
				rewardFlag: 0,
				source: 4, //统计来源 一键发布1任务中心发布/2历史发布3为完单邀请 新发布4
				minimumWage: 20, //保底工资
				isMinimumWage: true, //是否选择保底工资
				isShowbaodiInfo: false,
				isShowTimeSelect: false,
				isStartTaskTomorrowFlag: false,
				isTaskTomorrowFlag: false,
				ykCount: 0,
				ykName: '',
				isLevelsd: 0, //2是二级用户
				gwyqCheckboxItem: [],
				gwyqCheckboxItemSelected: [],
				levelNubmer: 0,
				styleType: 2,
				isShowHesuan: false,
				heSuanValue: '48',
				flagType: 0,
				levelNubmer2: 0,
				isBaodiChange: 1,
				formBaodi: [],
				tiyanCardtime: '',
				baodiValue: 0,
				placeholderText: '',
				nn: 5,
				timer2: '',
				tempPlaceholder: [],
				isBtnClick: false,
				seedingArr: [],
				newMsk: false,
				historyTitle: '',
				isFirstInSe: true,
				isFirstInSe2: true,
				historyTaskContent: 0,
				isClickAddress: false,
				isClickTime: false,
				isClickStep: false,
				showYkJianmian: false,
				userinfo: {},
				showYkJianmianTime: 0,
				num: 0,
				isQipao: false,
				isYouxian: false,
				isOpenYouxian: true,
				isTaskTomorrowFlag2: -1,
				changeCurrentIndex: '0',
				historyReward: '',
				historyLocationFlag: true,
				maxObj: {
					min: "",
				},
			};
		},
		watch: {
			"task.region": {
				handler(n, l) {
					if (n) {
						console.log(n, 444444);
						this.doPrice();
					}
				},
			},
			showYkJianmianTime() {
				setTimeout(() => {
					this.showYkJianmianTime -= 1
				}, 1000)
			},
			widthMove(newVal, oldVal) {
				let percent = (newVal + 22) / 600;
				let price = Math.round(percent * (45 - this.maxObj.min)) + this.maxObj.min;
				console.log(newVal, oldVal, 55555);
				this.task.reward = price;
				if (price < 22) {
					this.moveText = "成功率低";
					console.log("成功率低", newVal);
				} else if (price < 32) {
					this.moveText = "推荐";
					console.log("推荐", newVal);
				} else {
					this.moveText = "成功率高";
					console.log("最高");
				}
			},
			// 监听工作时长
			workTime: function(newVal, oldVal) {
				console.log(newVal, 1)
				// console.log('~~~~~~',typeof this.task.taskType,newVal)
				if (oldVal != newVal) {
					this.task.reward = ''
				}
				if (this.task.taskType === '0' && ((newVal <= 3 && this.task.reward < 20) || (newVal <= 5 && this.task
						.reward < 18)) && this.task.reward != '') {}
				if (newVal < 0.5) {
					this.task.endTime = ''
					this.workTime = 0
					this.isFillin = false
					if (this.task.endTime.length == 0 && this.task.startTime.length == 0) return
					uni.showToast({
						title: '任务时间不能小于半小时',
						icon: 'none'
					})
				}
			},
			progress(newValue, oldValue) {
				if (newValue > 100) {
					this.progress = 95
				}
			},
		},
		components: {
			jobPay,
			timeSelect,
			showModalButton,
			XinRenFaDan,
			// GuZhuXinXiBuChong,
			realNameC,
			mySwiper,
			zbTooltip,
		},
		computed: {
			getGuoqi() {
				if (this.tiyanCardtime) {
					let localtime = new Date().getTime();
					let lasttime = new Date(this.tiyanCardtime.replace(/-/g, '/')).getTime()
					if (localtime > lasttime) {
						return false
					} else {
						return true
					}
				}
			}
		},
		methods: {
			open(e, l = null) {
				this.$fetch(this.$api.employer_authentication, {}, "POST").then((res) => {
					console.log(res, 8888);
					if (res.code) {
						uni.showToast({
							title: res.msg,
							icon: "none",
						});
					}
					if (!res.data) {
						this.$refs.popup.open();
					}
				});
			},
			handBlur() {
				uni.setStorageSync('historyReward1', this.reward1)
			},
			changeTaskType(index) {
				this.doPrice(index);
				if (index != this.changeCurrentIndex) {
					this.changeCurrentIndex = index;
					this.task.taskType = index;
					if (this.task.taskContent) this.historyTaskContent = 1;
					if (index == 1) {
						// 切换为计件
						this.isFirstInSe2 = true
						this.reward1 = uni.getStorageSync('historyReward1')
						console.log(this.historyReward1, '历史价格');
						if (!this.task.taskContent) {
							this.isNextFillin = false;
							if (this.isFirstInSe) {
								this.isFirstInSe = false;
								this.progress -= 20;
							}
						}
					} else {
						// 切换为计时
						this.isFirstInSe = true;
						if (this.isFirstInSe2) {
							this.isFirstInSe2 = false;
							if (!this.task.taskContent) {
								this.progress += 20;
							}
						}
					}
				}
			},
			qipao() {
				if (!uni.getStorageSync('publishTaskQipao')) {
					this.isQipao = true
					let firstTime = new Date().getTime()
					let Endtime = firstTime + 6 * 30 * 24 * 60 * 60 * 1000
					uni.setStorageSync('publishTaskQipao', Endtime)
					uni.setStorageSync('publishTaskQipaoLastTime', firstTime)
				}
				let now = new Date().getTime();
				if (now > uni.getStorageSync('publishTaskQipao')) {
					return
				} else {
					if (now - uni.getStorageSync('publishTaskQipaoLastTime') > (30 * 24 * 60 * 60 * 1000)) {
						console.log(now - uni.getStorageSync('publishTaskQipaoLastTime'))
						this.isQipao = true
						uni.setStorageSync('publishTaskQipaoLastTime', now)
					}
				}
			},
			async getIsYouxian() {
				let res = await this.$fetch(this.$api.property_list_by_type_and_key, {
					type: 1,
					key: 'task_release_user_flag'
				}, 'POST')
				if (res.code != 0) {
					return
				}
				if (Number(res.data) == 4) {
					this.isOpenYouxian = true
					this.isYouxian = true
				} else {
					if (uni.getStorageSync('userInfo').cardUserType == Number(res.data)) {
						this.isOpenYouxian = true
						this.isYouxian = true
					}
				}
			},
			refresh1() {
				if (this.timer2 == "") {
					this.timer2 = setInterval(this.autoPlay, 1000);
				} else {
					clearInterval(this.timer2);
					this.timer2 = "";
					this.nn = 5;
				}
			},
			autoPlay() {
				this.nn--;
				if (this.nn == 0) {
					this.getTaskPlaceholder()
					this.nn = 5;
				}
			},
			async getTaskPlaceholder() {
				let res = await this.$fetch(this.$api.property_list_by_type, {
					type: 1
				}, 'POST')
				console.log(res, '起飞')
				if (res.code) return uni.showToast({
					title: res.msg,
					icon: 'none'
				})
				let tempPlaceholder = res.data.task_placeholder.split(',')
				let suiji = Math.round(Math.random() * 2)
				this.placeholderText = tempPlaceholder[suiji]
			},
			baodiChange(index, num) {
				if (index == this.isBaodiChange) {
					this.task.floorsAmount = 0
					this.isBaodiChange = 0
					return
				}
				this.isBaodiChange = index
				this.task.floorsAmount = num
				console.log(this.task.floorsAmount)
			},
			getCardList() {
				getMonthCardInfo_card_list().then(v => {
					this.levelNubmer2 = v[0].numberPeople
					// console.log(v)
				})
			},
			workConfirm(e) {
				this.choiceWorkType = e[0];
				// console.log(e);
			},
			showTemp() {
				this.task.address = this.historyLocation
				this.task.lat = this.historyLat
				this.task.lng = this.historyLng
				this.task.region = this.historyRegion
				this.historyLocationFlag = false;
				// this.isFillin = true
				// console.log(this.task)
				// this.$refs.tooltip.close()
			},
			//获取工种列表
			async getTaskCateList() {
				let res = await this.$fetch(this.$api.getTaskCateList, {}, 'GET')
				if (res.code == 0) {
					this.workTypeList = res.data;
					console.log(111, this.workTypeList);
				} else {
					uni.showToast({
						title: res.msg,
						icon: 'none'
					})
				}
			},
			updateUserImage(e) {},
			// 实名认证 已认证
			real_name(e) {
				console.log(e, "-------------------");
				this.RealName = {
					name: e
				}
			},
			timeColumnchange(event, isEnd) {
				if (event.detail.value == 0 && event.detail.column == 0) {
					this.ishourChange = false
					this.handleGetRange(isEnd)
				} else if (event.detail.value != 0 && event.detail.column == 0) {
					this.ishourChange = true
				}
				if (this.ishourChange) {
					this.$forceUpdate()
					this.timeList[1] = (Array.from(Array(6), (v, k) => k == 0 ? '00' : k * 10))
				}
			},
			hanleInfokj() {
				// this.showS = false
				setTimeout(() => {
					this.showS = false
				}, 200)
			},
			hanleInfokj2() {
				// console.log(this.historyAddress)
				if (!this.isClickAddress && this.ShowAdd === '') {
					this.isClickAddress = true
					this.progress += 5
				}
				this.ShowAdd = this.historyDeatilAddress
				this.ShowAdd = this.historyAddress
				this.showS = !this.showS
				// console.log(this.task)
			},
			focus_input() {
				this.showS = true
			},
			//test
			testgetFillin(e) {
				console.log(e)
				if (e.detail.value == 'cs12345') {
					//dsadsadsad21, 义乌市·江东街道·美吉姆国际早教中心义乌吾悦广场, [Number] 29.30581581258005 , [Number] 120.10599571632592 , 330782002000 
					this.task.address = '义乌·吾悦广场·测试地址'
					this.task.lat = '29.30581581258005'
					this.task.lng = '120.10599571632592'
					this.task.region = '330782002000'
				}
				if (e.detail.value == 'cs123456') {
					this.isShowPay = true
				}
				if (e.detail.value == 'tz1234') {
					uni.navigateTo({
						url: '/pages/jubao/jubao?orderId=1210'
					})
				}
				// this.getFillin()
			},
			getFillinRemind() {
				if (!this.task.name.trim()) return uni.showToast({
					title: '任务标题未填写~',
					icon: 'none'
				})
				if (!this.checkLoginNameFormat(this.task.telephone)) return uni.showToast({
					title: '电话未正确填写~',
					icon: 'none'
				})
				if (!this.task.startTime || !this.task.endTime) return uni.showToast({
					title: '工作时间未选择~',
					icon: 'none'
				})
				// if (this.choiceWorkType.value == 0) return uni.showToast({
				// 	title: '工种未选择~',
				// 	icon: 'none'
				// })
				if (!this.task.lng || !this.task.lat) return uni.showToast({
					title: '定位地址未选择~',
					icon: 'none'
				})
				if (!this.ShowAdd) return uni.showToast({
					title: '请输入详细地址~',
					icon: 'none'
				})
				if (this.issuanceNum < 2) return;
				if (this.idCardStatus == 1) return uni.showToast({
					title: '信息审核中，暂不能发布',
					icon: 'none'
				});
				if (this.idCardStatus == 0 || this.idCardStatus == 3) return uni.navigateTo({
					url: "/pages/real-name/real-name"
				});
			},
			//第一页是否都填写完毕
			getFillin() {
				// console.log(11,this.task.region);
				if (!this.task.name.trim() || !this.task.lat || !this.checkLoginNameFormat(this.task.telephone) || !this
					.task.lng || !this.task.region || !this.ShowAdd || !this.task.startTime || !this.task.endTime || (this
						.idCardStatus != 2 && this.issuanceNum >= 2)) {
					this.isFillin = false
				} else {
					this.isFillin = true
				}
			},
			//赋值
			getNumber(e) {
				let arr = this.task.reward.split('');
				if (e === '×') {
					arr.splice(-1, 1)
					this.task.reward = arr.join('')
				} else if (e === '.') {
					if (this.task.reward.toString().split('.').length - 1 == 0) {
						this.task.reward += e
					}
				} else {
					console.log(this.task.reward.toString().split('.').length - 1)
					this.task.reward += e
				}
			},
			//第二页是否都填写完毕
			getNextFillin() {
				if (this.task.taskType == '1') {
					if (this.task.reward < 0.01) {
						this.isNextFillin = false
						return
					}
					if (this.task.taskContent == '') {
						this.isNextFillin = false
						return
					}
					if (this.pictureList != '' || this.task.taskVideo != '') {} else {
						this.isNextFillin = false
						return
					}
				}
				if (!this.task.reward) {
					this.isNextFillin = false
				} else {
					this.isLowest_Amount()
				}
			},
			//检测用户输入工价
			async getYhReward(num) {
				num = parseFloat(num)
				if (this.rewardFlag == 0) {
					this.rewardFlag = num
				} else if (this.rewardFlag != num) {
					this.rewardFlag = num
					let res = await this.$fetch(this.$api.task_user_price, {
						'price': this.rewardFlag
					}, 'POST')
					if (res.code) {
						return uni.showToast({
							title: res.msg,
							icon: 'none'
						})
					}
				}
			},
			//监听工价输入
			reward(e) {
				let el = e.detail.value;
				if (!this.historyReward) {
					this.historyReward = el;
					this.progress += 10;
				} else {
					el.length === 0 ? (this.progress -= 10) : "";
					this.historyReward = el;
				}
				this.isNextFillin = false;
				if (this.task.reward.includes(".")) {
					let rewards = this.task.reward.split(".");
					if (rewards[0].length > 4) {
						rewards[0] = rewards[0].slice(0, 4);
					} else if (rewards[1].length > 2) {
						rewards[1] = rewards[1].slice(0, 3);
					}
					setTimeout(() => {
						this.task.reward = rewards.join(".");
					}, 200);
				} else if (this.task.reward.length > 3) {
					setTimeout(() => {
						this.task.reward = this.task.reward.slice(0, 4);
					}, 200);
				}
				if (this.task.reward >= this.competitives[2]) {
					this.competitive = 3;
				} else if (this.task.reward > this.competitives[0]) {
					this.competitive = 2;
				} else {
					this.competitive = 1;
				}
				setTimeout(() => {
					if (this.task.reward < 0.01 && this.task.reward != "") {
						//this.task.reward = 0.01
						this.isNextFillin = false;
						uni.showToast({
							title: "工价不能低于0.01~",
							icon: "none",
						});
					}
				}, 2000);
				if (this.task.reward >= this.maxObj.min && this.task.reward <= 45) {
					let m_price = this.task.reward - this.maxObj.min;
					this.widthMove = (m_price / (45 - this.maxObj.min)) * 600 - 22;
				} else if (this.task.reward > 45) {
					this.widthMove = 578;
				}
				this.isLowest_Amount();
				//this.getNextFillin()
			},
			//输入人数
			inputNumber() {
				if (this.type == 'bohui') {
					uni.showToast({
						title: '不可修改人数',
						icon: 'none'
					})
					return
				}
				clearTimeout(this.timer)
				this.timer = setTimeout(() => {
					if (this.task.number < this.minNumber) {
						this.task.number = this.minNumber
						uni.showToast({
							title: '人数不能在少了~',
							icon: 'none'
						})
						return
					}
				}, 800)
			},
			//点击计算人数
			addNumber(flag) {
				if (this.type == 'bohui') {
					uni.showToast({
						title: '不可修改人数',
						icon: 'none'
					})
					return
				}
				if (flag) {
					if (this.task.number >= 99) {
						this.task.number = 99
						uni.showToast({
							title: '人数不能再多了~',
							icon: 'none'
						})
						return
					}
					this.task.number++
				} else {
					if (this.task.number <= this.minNumber) {
						uni.showToast({
							title: '人数不能在少了~',
							icon: 'none'
						})
						return
					}
					this.task.number--
				}
			},
			// 验证手机号格式是否正确
			checkLoginNameFormat(mobile) {
				let reg = /^[1][3456789][0-9]{9}$/
				if (!reg.test(mobile)) {
					// uni.showToast({ title: '手机号格式不正确', icon: 'none' })
					return false
				}
				return true
			},
			zoumadeng() {
				this.truexianshi = "none"
				this.textlie = ""
			},
			// 选择上传图片或视频
			handleUpload() {
				uni.showActionSheet({
					itemList: ['上传图片', '上传视频'],
					// height: 
					success: res => {
						if (res.tapIndex == 0) {
							this.handleUploadImage()
						} else {
							this.handleUploadVideo()
						}
					},
					fail: function(res) {
						console.log(res.errMsg);
					}
				})
			},
			// 选择日期
			handleSelectDate(flag) {
				console.log(flag, 'flag是什么');
				if (this.timeFlag == flag) return
				this.timeFlag = flag
				this.startHour = ''
				this.startMinute = ''
				this.endHour = ''
				this.endMinute = ''
				this.workTime = 0
				this.task.startTime = ''
				this.task.endTime = ''
				// if (this.timeFlag == 0) {
				// 	console.log('flag今天', flag)
				// 	this.handleGetRange(false)
				// } else {
				// 	console.log('flag明天', flag)
				// 	this.timeList = [
				// 		[],
				// 		[]
				// 	]
				// 	this.timeList[0] = Array.from(Array(24), (v, k) => k < 10 ? '0' + k : k)
				// 	this.timeList[1] = Array.from(Array(6), (v, k) => k == 0 ? '00' : k * 10)
				// 	//this.timeList[1] = Array.from(Array(60), (v, k) => k < 10 ? '0' + k : k)
				// }
			},
			// 点击工作弹框
			handleGetName(name) {
				this.task.name = name
				this.historyTitle = name
				this.progress += 10
				this.screenFlag = false
			},
			// 工作名称聚焦时，有内容不弹框，无内容弹框
			handleName(e) {
				this.screenFlag = this.task.name ? false : true
			},
			//年龄区间选择确认按钮事件
			selectJobAgeOK(age) {
				this.isShowselectJobAge = false
				this.task.age = age
			},
			//年龄区间显示
			showSelectJobAgeOK() {
				switch (this.task.age) {
					case 0:
						return '18-不限'
					case 1:
						this.isShowMoreInfo = true
						return '20-35岁'
					case 2:
						this.isShowMoreInfo = true
						return '25-45岁'
					default:
						return '18-不限'
				}
			},
			//输入时
			// handleNameInput(event) {
			// 	console.log('输入时', event.detail.value)
			// 	this.screenFlag = event.detail.value ? false : true
			// 	//this.getFillin()
			// },
			// 输入时
			handleNameInput(event) {
				console.log(event)
				let el = event.detail.value
				this.screenFlag = el ? false : true
				if (!this.historyTitle) {
					this.historyTitle = el
					this.progress += 10
					console.log('8888888888')
				} else {
					el.length === 0 ? (this.progress -= 10) : ''
					this.historyTitle = el
				}
				//this.getFillin()
			},
			// 关闭弹窗
			hideModal() {
				this.screenFlag = false
			},
			// 遮罩层下不滚动
			moveHandle() {
				return
			},
			// 打开地图
			handleMap() {
				uni.navigateTo({
					url: '/pages/chooseLocation/wx_chooseLocation?type=send'
				})
			},
			// 检查定位权限授权
			async checkPermission() {
				let status = permision.isIOS ? await permision.requestIOS('location') : await permision.requestAndroid(
					'android.permission.ACCESS_FINE_LOCATION');
				this.checkLocationStatus = status;
			},
			// fabuClick() {
			// 	if (!this.task.reward) {
			// 		return uni.showToast({
			// 			title: '请输入报酬金额~',
			// 			icon: 'none'
			// 		})
			// 	}
			// 	if (this.task.taskType == '1') {
			// 		// console.log(this.task.taskContent)
			// 		// if (!this.task.taskContent) return uni.showToast({
			// 		// 	title: '请补充岗位要求~',
			// 		// 	icon: 'none'
			// 		// })
			// 		if (this.task.taskPic == '' || this.task.taskVideo == '') {
			// 			return uni.showToast({
			// 				title: '请添加图片或视频~',
			// 				icon: 'none'
			// 			})
			// 		}
			// 	}
			// },
			fabuClick() {
				if (!this.task.reward && !this.task.jijian) {
					return uni.showToast({
						title: "请输入报酬金额~",
						icon: "none",
					});
				}
				if (this.task.taskType == 1) {
					if (["", "0", 0].includes(this.task.jijian)) {
						this.isNextFillin = false;
						uni.showToast({
							title: "工价不能为0或者空~",
							icon: "none",
						});
						return;
					}
					if (this.task.reward < 0.01 || !this.task.reward) {
						this.isNextFillin = false;
						uni.showToast({
							title: "工价不能低于0.01~",
							icon: "none",
						});
						return;
					}
					console.log("this.task.taskPic ", this.task.taskPic);
					if (!this.task.taskContent) {
						return uni.showToast({
							title: "请补充岗位要求~",
							icon: "none",
						});
					}
					if (this.task.taskPic == "" && this.task.taskVideo == "") {
						console.log("88888 ", this.task.taskPic);
						return uni.showToast({
							title: "请添加图片或视频~",
							icon: "none",
						});
					}
				}
			},
			hanldIndexClick(index) {
				this.styleType = index
				if (index == 1) {
					this.heSuanValue = '24'
				}
				if (index == 2) {
					this.heSuanValue = '48'
				}
			},
			hesuanFaBu(flag) {
				this.flagType = flag
				if (uni.getStorageSync('nucleic_acid_require') == 1) {
					this.isShowHesuan = true
				} else {
					this.heSuanValue = ''
					this.handleConfirm(this.flagType)
				}
				// 临时打包
				// 
			},
			hesuanFaBu2(type) {
				this.isShowHesuan = false
				if (type == 'no') {
					this.heSuanValue = ''
					this.handleConfirm(this.flagType)
				} else {
					this.handleConfirm(this.flagType)
				}
			},
			// 确认发布或者修改
			async handleConfirm(flag) {
				if (this.task.taskType == 1) {
					if (["", "0", 0].includes(this.task.jijian)) {
						this.isNextFillin = false;
						uni.showToast({
							title: "工价不能为0或者空~",
							icon: "none",
						});
						return;
					}
				}
				console.log("task", this.task);
				this.task.lat = parseFloat(this.task.lat).toFixed(6);
				this.task.lng = parseFloat(this.task.lng).toFixed(6);
				this.task.region = this.task.region ? this.task.region.slice(0, 9) : "";
				//	console.log('提交前我的地点', this.task.lat, this.task.lng, this.task.region)
				// if (!this.task.name.trim()) {
				// 	return uni.showToast({
				// 		title: "请输入工作名称~",
				// 		icon: "none",
				// 	});
				// }
				// if (!this.checkLoginNameFormat(this.task.telephone)) {
				// 	return uni.showToast({
				// 		title: "电话号码格式不正确~",
				// 		icon: "none",
				// 	});
				// }
				// if (!this.task.lat || !this.task.lng || !this.task.region) {
				// 	return uni.showToast({
				// 		title: "请选择地点~",
				// 		icon: "none",
				// 	});
				// }
				if (!this.task.taskType) {
					return uni.showToast({
						title: "请选择报酬方式~",
						icon: "none",
					});
				}
				if (this.task.taskType == 0 ? !this.task.reward : !this.task.jijian) {
					return uni.showToast({
						title: "请输入报酬金额~",
						icon: "none",
					});
				}
				// if (!this.task.startTime) {
				// 	return uni.showToast({
				// 		title: "请选择开始时间~",
				// 		icon: "none",
				// 	});
				// }
				// if (!this.task.endTime) {
				// 	return uni.showToast({
				// 		title: "请选择结束时间~",
				// 		icon: "none",
				// 	});
				// }
				// if (this.workTime <= 0) {
				// 	return uni.showToast({
				// 		title: "请选择合适的工作时间~",
				// 		icon: "none",
				// 	});
				// }
				//console.log("图片地址"+this.task.taskPic)
				//console.log("图片地址测试"+this.pictureList)
				this.task.taskPic = this.pictureList.join();
				if (this.task.taskType == 1) {
					if (!this.task.taskContent) return uni.showToast({
						title: "请补充岗位要求~",
						icon: "none",
					});
					if (this.task.taskPic != "" || this.task.taskVideo != "") {} else {
						return uni.showToast({
							title: "请添加图片或视频~",
							icon: "none",
						});
					}
				} else if (this.task.taskType == 2) {
					return uni.showToast({
						title: "暂不支持计天~",
						icon: "none",
					});
				}
				//console.log('报酬',this.task.reward, this.time_lowest_amount,parseFloat(this.task.reward) < parseFloat(this.time_lowest_amount),this.task.taskType == 0)
				this.task.reward = parseFloat(this.task.reward);
				if (this.isBtnClick) {
					return;
				}
				this.isBtnClick = true;
				setTimeout(() => {
					this.isBtnClick = false;
				}, 5000);
				// 发布，重新发单
				if (flag === 0) {
					if (this.task.number < this.minNumber) return uni.showToast({
						title: "请重新输入招聘人数~",
						icon: "none",
					});
					this.task.endTime = this.task.endTime.split('/').join('-')
					this.task.startTime = this.task.startTime.split('/').join('-')
					console.log(this.task.endTime, this.task.startTime, 'eeeeeeeeeeee')
					let upObj = {
						address: this.ShowAdd != "" ? [this.task.address, this.ShowAdd].join("·") : [this.task
							.address, " "
						].join("·"),
						endTime: this.task.endTime,
						lat: this.task.lat,
						lng: this.task.lng,
						name: this.task.name,
						number: this.task.number,
						region: this.task.region, //街道区域自己算
						reward: this.task.taskType == 0 ? this.task.reward.subtract(100) : this.task.jijian * 100,
						sex: this.task.sex,
						startTime: this.task.startTime,
						taskContent: this.task.taskContent,
						taskPic: this.task.taskPic,
						taskType: this.task.taskType,
						nucleicAcid: this.heSuanValue,
						disturbstatus: this.task.disturbstatus,
						floorsAmount: this.task.floorsAmount * 100,
						taskVideo: this.task.taskVideo,
						telephone: this.task.telephone,
						serverFlag: this.serverFlag,
						userName: this.timeFlags,
						competitive: this.competitive,
						age: this.isSelectJobAge,
						ageMin: this.task.ageMin,
						ageMax: this.task.ageMax,
						//之前逻辑 选择保底就是1 不选择就是0
						floorsstr: this.task.taskType == 1 && this.task.floorsAmount !== 0 ? 1 : 0,
						tasklabel: this.task.tasklabel,
						priorityPushFlag: this.isYouxian ? 1 : 0,
					};
					uni.setStorageSync("historyAddress", this.ShowAdd);
					uni.setStorageSync("historyLocation", encodeURIComponent(this.task.address));
					// console.log('wooo:'+this.task.lat)
					uni.setStorageSync("historyLat", this.task.lat);
					uni.setStorageSync("historyLng", this.task.lng);
					uni.setStorageSync("historyRegion", this.task.region);
					this.get_task_one(this.source);
					if (this.wdfb) {
						upObj["sincerityGold"] = -1;
					}
					let res = await this.$fetch(this.$api.release_task, upObj, "POST", "JSON");
					console.log(res, "发布星系");
					if (res.code) {
						if (res.msg.includes("直通卡") || res.msg.includes("当前卡片")) {
							setTimeout(() => {
								uni.navigateTo({
									url: "/pages/bossMonthCard/straightCard",
								});
							}, 2500);
						}
						return uni.showToast({
							title: res.msg,
							icon: "none",
							duration: 2000,
						});
					}
					//                setTimeout(()=>{
					// 	this.isBtnClick = true
					// },500)
					this.removeTaskDrafts();
					// return
					if (this.bond != 0) {
						this.newTaskId = res.data.id;
						if (this.isInvitation) {
							this.invitationOrder(this.InvUsers);
						}
						if (!this.wdfb) {
							let ress = await this.$fetch(this.$api.task_detail, {
								taskId: this.newTaskId,
							}, "POST");
							this.num = res.data.number;
							let userpaytype = ress.data.userpaytype;
							let resData = await this.$fetch(this.$api.get_current_user, "GET");
							if (resData.code) return;
							this.userinfo = resData.data;
							if (userpaytype == 3 && resData.data.cardNumber >= upObj.number) {
								this.showYkJianmian = true;
								console.log("this.showYkJianmian", this.showYkJianmian);
								// Voice('您的任务已发布，请耐心等待审核')
								setTimeout(() => {
									uni.redirectTo({
										url: "/pages/my-job/boss-my-job-new",
									});
									this.showYkJianmian = false;
								}, 3000);
							} else {
								setTimeout(() => {
									uni.redirectTo({
										url: "/pages/app-employer/fabu-pay/fabu-pay?taskId=" + this
											.newTaskId,
									});
								}, 1000);
							}
						} else {
							uni.redirectTo({
								url: "/pages/my-job/boss-my-job-new",
							});
						}
					} else {
						// console.log('保证金没')
						this.payBondZero(res.data.id);
						setTimeout(() => {
							uni.redirectTo({
								url: "/pages/my-job/boss-my-job-new",
							});
						}, 300);
					}
					//修改
				} else if (flag === 1) {
					let upObjM = {
						address: this.ShowAdd != "" ? [this.task.address, this.ShowAdd].join("·") : [this.task
							.address, " "
						].join("·"),
						endTime: this.task.endTime,
						lat: this.task.lat,
						lng: this.task.lng,
						name: this.task.name,
						number: this.task.number,
						region: this.task.region, //街道区域自己算
						reward: this.task.taskType == 0 ? this.task.reward * 100 : this.task.jijian * 100,
						sex: this.task.sex,
						startTime: this.task.startTime,
						taskContent: this.task.taskContent,
						taskPic: this.task.taskPic,
						taskType: this.task.taskType,
						id: this.task.id,
						disturbstatus: this.task.disturbstatus,
						floorsAmount: this.task.floorsAmount * 100,
						taskVideo: this.task.taskVideo,
						telephone: this.task.telephone,
						serverFlag: this.serverFlag,
						userName: this.timeFlags,
						competitive: this.competitive,
						age: this.isSelectJobAge,
						//之前逻辑 选择保底就是1 不选择就是0
						floorsstr: this.task.taskType == 1 && this.task.floorsAmount !== 0 ? 1 : 0,
						tasklabel: this.task.tasklabel,
					};
					uni.setStorageSync("historyAddress", this.ShowAdd);
					uni.setStorageSync("historyLocation", encodeURIComponent(this.task.address));
					uni.setStorageSync("historyLat", this.task.lat);
					uni.setStorageSync("historyLng", this.task.lng);
					uni.setStorageSync("historyRegion", this.task.region);
					let res = await this.$fetch(this.$api.upd_reject_task, upObjM, "POST", "JSON");
					if (res.code) {
						return uni.showToast({
							title: res.msg,
							icon: "none",
						});
					}
					uni.showToast({
						title: "修改成功~",
						icon: "none",
					});
					setTimeout(() => {
						uni.redirectTo({
							url: "/pages/my-job/boss-my-job-new",
						});
					}, 800);
				}
			},
			// 工价区间拖动
			progressTouchMove(e) {
				let el = e.changedTouches[0].pageX
				let preWidth = this.widthMove + (el - this.startX).toFixed(0) * 2
				if (preWidth < -22) {
					this.widthMove = -22
				} else if (preWidth > 578) {
					this.widthMove = 578
				} else {
					this.widthMove = preWidth
				}
				this.startX = el
			},
			progressTouchStart(e) {
				console.log(e)
				let el = e.changedTouches[0].pageX
				this.startX = el
			},
			progressTouchEnd(e) {
				console.log(e, 8989)
				let el = e.changedTouches[0].pageX
				this.startX = el
			},
			// 不用支付保证金时，默认调付保证金接口
			async payBondZero(id) {
				let bondObj = {
					payPwd: '',
					payType: -1, //0支付宝，1微信，2钱包，-1,保证金为0
					taskId: id,
				}
				let res = await this.$fetch(this.$api.v1_pay_bond, bondObj, 'POST')
				if (res.code) return uni.showToast({
					title: res.msg,
					icon: 'none'
				})
			},
			// 当选择开始结束时间
			bindTypeChange(e, flag) {
				if (flag == 1) {
					this.task.taskType = e.detail.value.toString()
				} else if (flag == 2) {
					this.startHour = this.timeList[0][e.detail.value[0]]
					this.startMinute = this.timeList[1][e.detail.value[1]]
					this.task.startTime = this.timeFlag == 0 ? this.toDay + ' ' + this.startHour + ':' + this.startMinute +
						':' + '00' : this.tomorrow + ' ' + this.startHour + ':' + this.startMinute + ':' + '00'
					console.log(this.task.startTime, 789)
					setTimeout(() => {
						this.calWorkTime()
					}, 500)
				} else {
					this.endHour = this.timeList[0][e.detail.value[0]]
					this.endMinute = this.timeList[1][e.detail.value[1]]
					this.task.endTime = this.timeFlag == 0 ? this.toDay + ' ' + this.endHour + ':' + this.endMinute + ':' +
						'00' : this.tomorrow + ' ' + this.endHour + ':' + this.endMinute + ':' + '00'
					setTimeout(() => {
						this.calWorkTime()
					}, 500)
				}
			},
			// 计算工作时间
			calWorkTime() {
				if ((!this.endHour) || (!this.startHour)) return
				// 工作时长
				let workHour = this.endHour - this.startHour
				let workMinute = this.endMinute - this.startMinute
				if (workMinute < 0) {
					this.workTime = (workHour - 1) + Math.round((60 + workMinute) / 60 * 10) / 10
				} else {
					this.workTime = workHour + Math.round(workMinute / 60 * 10) / 10
				}
			},
			//功能监测---一键发布1任务中心发布/2历史发布3是完单邀请4是重新发单
			async get_task_one(type) {
				let v = {
					'type': type
				}
				let res = await this.$fetch(this.$api.get_task_one, v, 'POST')
				if (res.code) return uni.showToast({
					title: res.msg,
					icon: 'none'
				})
			},
			// 获取本地视频路径
			handleUploadVideo() {
				let that = this
				uni.chooseVideo({
					count: 1,
					sourceType: ['camera', 'album'],
					success: function(res) {
						// console.log('视屏',res)
						if (res.duration > 20) return uni.showToast({
							title: '视频时间不能超过20秒~',
							icon: 'none'
						})
						that.uploadVideo(res.tempFilePath) //图片的本地文件路径列表res.tempFilePaths
					}
				});
			},
			//获取本地图片路径
			handleUploadImage() {
				let that = this
				uni.chooseImage({
					count: 3 - that.pictureList.length, //最多可以选择的图片张数
					sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图，默认二者都有
					success: function(res) {
						if (res.tempFilePaths.length + that.pictureList.length > 3) return uni.showToast({
							title: '最多上传3张图片',
							icon: 'none'
						})
						that.uploadImgs(res.tempFilePaths) //图片的本地文件路径列表res.tempFilePaths
					}
				})
			},
			// 上传视频至七牛
			uploadVideo(urls) {
				uni.uploadFile({
					url: this.$api.uploadPic,
					name: 'file',
					filePath: urls,
					method: "POST",
					formData: {
						token: this.uploadToken
					},
					success: ({
						data
					}) => {
						data = JSON.parse(data)
						this.task.taskVideo = data.hash
						//this.getNextFillin()
					}
				})
			},
			// 上传图片至七牛
			uploadImgs(urls) {
				urls.forEach(item => {
					uni.uploadFile({
						url: this.$api.uploadPic,
						name: 'file',
						filePath: item,
						formData: {
							token: this.uploadToken
						},
						success: ({
							data
						}) => {
							data = JSON.parse(data)
							this.pictureList.push(data.hash)
							console.log("上传返回hash" + data)
							//this.getNextFillin()
						}
					})
				})
			},
			// 删除视频
			handleDeleteVideo() {
				this.task.taskVideo = ''
			},
			//删除图片
			handleDelete(index) {
				this.pictureList.splice(index, 1)
				this.task.taskPic = this.pictureList.join()
			},
			// 获取日期
			getToday() {
				//今天的时间
				var day_0 = new Date();
				day_0.setDate(day_0.getDate());
				this.toDay = this.formatDate(day_0)
				// console.log('this.toDay',this.toDay)
				//明天的时间
				var day_1 = new Date();
				day_1.setDate(day_1.getDate() + 1);
				this.tomorrow = this.formatDate(day_1)
				// console.log('this.tomorrow',this.tomorrow)
			},
			formatDate(date) {
				var d = date,
					month = '' + (d.getMonth() + 1),
					day = '' + d.getDate(),
					year = d.getFullYear();
				if (month.length < 2) month = '0' + month;
				if (day.length < 2) day = '0' + day;
				return [year, month, day].join('-');
			},
			// 获取任务详情
			async task_detail() {
				let res = await this.$fetch(this.$api.task_detail, {
					taskId: this.taskId
				}, 'POST')
				if (res.code) return uni.showToast({
					title: res.msg,
					icon: 'none'
				})
				// console.log('res.data.address', res.data.address)
				// type==old：不改人数，修改；type==new：重新发单
				if (this.type) {
					this.task.id = this.type == 'bohui' ? this.taskId : ''
					this.task.address = this.getshowAdd(res.data.address)
					this.task.lat = res.data.lat
					this.task.lng = res.data.lng
					this.task.name = res.data.name
					this.task.number = this.minNumber ? this.minNumber > res.data.number ? this.minNumber : res.data
						.number : res.data.number
					this.task.region = res.data.region
					// console.log('region', res.data.region);
					this.task.reward = res.data.reward.divide(100)
					this.task.sex = res.data.sex.toString()
					this.task.taskContent = res.data.taskContent
					this.pictureList = res.data.taskPic ? res.data.taskPic.split(',') : []
					this.task.taskType = res.data.taskType.toString()
					this.task.floorsAmount = res.data.floorsAmount.divide(100)
					this.task.taskVideo = res.data.taskVideo
					this.task.telephone = res.data.telephone
					this.task.age = res.data.age
					this.task.disturbstatus = res.data.disturbstatus
					this.rask.tasklabel = res.data.tasklabel
					this.gwyqCheckboxItemSelected = this.rask.tasklabel ? this.rask.tasklabel.split(',') : []
				}
			},
			getshowAdd(add) {
				if (add.includes('·')) {
					if (add.split("·").length > 3) {
						add = add.split("·")
						this.ShowAdd = add.slice(3).toString()
						add = add.slice(0, 3).join("·")
					}
				}
				return add
			},
			// 发布任务时 缴纳保证金配置(元/人)
			async getData() {
				let res = await this.$fetch(this.$api.property_list_by_type, {
					type: 1,
				}, "POST");
				if (res.code) return uni.showToast({
					title: res.msg,
					icon: "none",
				});
				// 请求
				// let result = await this.$fetch(this.$api.getWage_configuration, {
				// 	taskType: '1',
				// }, "POST");
				// console.log(result,'数据请求')
				// this.minimumWage = res.data.piece_time_lowest_amount
				// console.log(this.minimumWage)
				this.formBaodi = res.data.piece_time_lowest_amount.split(",");
				if (this.task.floorsAmount == "") {
					this.task.floorsAmount = this.formBaodi[0];
				}
				uni.setStorageSync("bond", res.data.bond);
				if (res.data.Release_notes != "") {
					this.truexianshi = "block";
					this.textlie = res.data.Release_notes;
				}
				this.bond = res.data.bond;
				this.piece_tip = res.data.piece_tip;
				this.time_lowest_amount = res.data.time_lowest_amount;
				//console.log('计时最低时薪', time_lowest_amount)
			},
			// 获取热门和历史任务标题
			async get_lately_task_name(parms = "") {
				let positionTemp
				if (parms) {
					positionTemp = parms
				} else {
					positionTemp = 'BUSINESS_SAVE_TASK'
				}
				let res = await this.$fetch(this.$api.get_lately_task_name_v2, {
					pageSize: 18,
					position: positionTemp
				}, 'POST')
				console.log(res, '是否存在轮播图')
				this.seedingArr = res.data.banner
				console.log(this.seedingArr, '轮播路径')
				this.myTasks = []
				res.data.myTask.forEach((item) => {
					if (this.myTasks.indexOf(item) == -1) {
						this.myTasks.push(item)
					}
				})
				this.hotTasks = res.data.hot
				if (!res.data.isSettlement) return uni.showToast({
					title: '您有雇员未结算，请结算后再发布~',
					icon: 'none'
				})
			},
			//获取七牛上传TOKEN
			async getUploadToken() {
				let res5 = await this.$fetch(this.$api.get_qiniu_token, {}, 'POST')
				uni.setStorageSync('uploadToken', res5.msg)
				this.uploadToken = uni.getStorageSync('uploadToken')
			},
			//获取当日时间
			getToDay() {
				this.day0 = new Date();
				this.day0.setDate(this.day0.getDate());
				this.hour = parseInt(this.day0.format("hh"));
				this.minute = parseInt(this.day0.format("mm"));
				this.minflag = Math.ceil(this.minute / 10) * 10 + 30
			},
			// 根据当前时间给出时间选择范围
			handleGetRange(isEnd) {
				//	console.log("11111")
				// 今天修改时间选择器范围
				this.timeList = [
					[],
					[]
				]
				if (this.timeFlag == 0) {
					// 当前时间
					this.day_0 = new Date();
					this.day0.setDate(this.day0.getDate());
					this.hour = parseInt(this.day0.format("hh"));
					this.minute = parseInt(this.day0.format("mm"));
					this.minflag = Math.ceil(this.minute / 10) * 10 + 30
					if (isEnd) {
						//console.log(typeof this.startHour,typeof this.startMinute)
						this.hour = this.startHour != '' ? parseInt(this.startHour) : this.hour
						this.minflag = this.startMinute != '' ? parseInt(this.startMinute) : this.minflag
						this.minflag += 30
					}
					if (this.minflag >= 60) {
						this.hour += Math.floor(this.minflag / 60)
						this.hour = this.hour <= 23 ? this.hour : this.hour - 24
						this.minflag = this.minflag - 60 * Math.floor(this.minflag / 60)
					}
					this.timeList = [
						[],
						[]
					]
					this.timeList[0] = Array.from(Array(24), (v, k) => k < 10 ? '0' + k : k).slice(this.hour)
					this.timeList[1] = Array.from(Array(6), (v, k) => k == 0 ? '00' : k * 10).slice(this.minflag / 10)
					// console.log('this.timeList[0]', this.timeList[0])
					// 明天重置时间选择器范围
				} else {
					this.timeList = [
						[],
						[]
					]
					this.timeList[0] = Array.from(Array(24), (v, k) => k < 10 ? '0' + k : k)
					this.timeList[1] = Array.from(Array(6), (v, k) => k == 0 ? '00' : k * 10)
					//this.timeList[1] = Array.from(Array(60), (v, k) => k < 10 ? '0' + k : k)
				}
			},
			// 用户从主页进去 微弹窗
			async getUserTankaung() {
				let res = await this.$fetch(this.$api.get_current_user, {}, 'GET')
				console.log(res, "获取用户信息");
				console.log(res.data.idCardStatus, this.idCar);
				if (res.data.issuanceNum >= 2 && res.data.idCardStatus == 1 && this.idCar) {
					uni.showToast({
						title: '信息审核中，暂不能发布',
						icon: 'none'
					})
					this.idCar = false
				}
			},
			// 获取当前用户信息，及服务标识
			async getUserInfo() {
				let res = await this.$fetch(this.$api.get_current_user, {}, 'GET')
				// console.log(res.data.taskSuccessTotal,'999999999')
				this.issuanceNum = res.data.issuanceNum
				if (res.code) return uni.showToast({
					title: res.msg,
					icon: 'none'
				})
				this.taskSuccessTotal = res.data.taskSuccessTotal
				if (res.data.issuanceNum >= 2 && res.data.idCardStatus == 1 && this.idCar) {
					uni.showToast({
						title: '信息审核中，暂不能发布',
						icon: 'none'
					})
					this.idCar = false
				}
				this.idCardStatus = res.data.idCardStatus
				this.tiyanCardtime = res.data.cardtime
				this.ykCount = res.data.cardNumber ? res.data.cardNumber : 0
				this.levelNubmer = res.data.levelNubmer;
				this.ykName = res.data.cardUserType == 1 ? '月卡' : res.data.cardUserType == 2 ? '半年卡' : res.data
					.cardUserType == 3 ? '年卡' : res.data.cardUserType == 0 ? '0' : '体验卡'
				if (res.data.cardUserType == 4) {
					this.ykName = '体验卡'
				}
				uni.setStorageSync('userInfo', res.data)
				uni.setStorageSync('userType', res.data.userType)
				uni.setStorageSync("level", res.data.user.level) //用户等级
				this.serverFlag = res.data.user.serverFlag
				this.isLevelsd = res.data.user.level
			},
			//更改状态栏左上角的按钮text
			setNavTabButtonText() {
				if (this.isFillin) {
					//获取推荐价格范围
					if (this.task.taskType == "1") {
						// 使用计件
						// 判断是否填写岗位信息
						this.task.reward = 26;
						this.historyReward = 26;
						this.widthMove = (10 / (45 - this.maxObj.min)) * 600 - 22;
						// if (!this.isClickStep) {
						// 	this.isClickStep = true
						if (this.task.taskContent) {
							this.progress += 45;
						} else {
							this.progress += 30;
						}
						// }
					} else {
						// 使用计时
						// 判断是否有价格
						if (this.task.reward) {} else {
							this.task.reward = 26;
							this.widthMove = ((26 - this.maxObj.min) / (45 - this.maxObj.min)) * 600 - 22;
						}
						// if (!this.isClickStep) {
						this.isClickStep = true;
						this.progress += 45;
						// }
					}
					console.log(this.progress, "进度条长度");
					this.competitives = recommendSalary(this.task.sex, this.workTime);
					console.log("根据性别和时长获取推荐工价" + this.competitives);
					this.isShowNextPage = true;
					this.get_lately_task_name("BUSINESS_SAVE_TASK_2");
					// #ifdef APP-PLUS
					let webView = this.$scope.$getAppWebview();
					// 修改buttons
					webView.setTitleNViewButtonStyle(0, {
						text: "2/2  ",
					});
					// #endif
					uni.pageScrollTo({
						scrollTop: 0,
					});
					this.getLabourPriceByCity(this.task.region);
				}
			},
			// 计件描述输入
			taskContentInput(e) {
				if (this.task.taskType == 1) {
					let el = e.detail.value
					console.log(this.historyTaskContent)
					console.log(el)
					if (this.historyTaskContent == 0) {
						if (el) {
							this.progress += 20
							this.historyTaskContent = 1
						}
					} else {
						if (!el) {
							this.progress -= 20
							this.historyTaskContent = 0
						}
					}
					if (this.task.reward && (this.pictureList.length !== 0 || this.task.taskVideo) && this.task
						.tasklabel) {
						this.isNextFillin = true
					}
					if (!el) {
						this.isNextFillin = false
					}
				}
			},
			//获取定位地址
			getChooseLocation(addressText, latitude, longitude, region) {
				console.log('触发')
				// location: {
				// 	"latitude": 29.30500,
				// 	"longitude": 120.10500
				// }, //地图中心经纬度
				//console.log('定位',addressText, latitude, longitude, region)
				if ((29.3050 <= latitude && latitude <= 29.3052) && (120.1050 <= longitude && longitude <= 120.1052)) {
					return uni.showToast({
						title: '请不要选择默认地址~',
						icon: 'none'
					})
				}
				this.task.address = addressText
				this.task.lat = latitude
				this.task.lng = longitude
				this.task.region = region
			},
			// 使用草稿情况
			isShowTaskDraftsClick(fabu) {
				this.isShowTaskDrafts = false
				if (!fabu) {
					this.removeTaskDrafts()
					return
				}
				let tasks = uni.getStorageSync('taskDrafts')[0]
				this.task.address = tasks.address ? tasks.address : ''
				this.task.lat = tasks.lat ? tasks.lat : ''
				this.task.lng = tasks.lng ? tasks.lng : ''
				this.task.name = tasks.name ? tasks.name : ''
				this.task.number = tasks.number ? tasks.number : 0
				this.task.region = tasks.region ? tasks.region : ''
				console.log('tasks.region', tasks.region);
				this.task.reward = tasks.reward ? tasks.reward : ''
				this.task.jijian = tasks.jijian ? tasks.jijian : ''
				this.task.sex = tasks.sex ? tasks.sex.toString() : ''
				this.task.taskContent = tasks.taskContent ? tasks.taskContent : ''
				this.task.taskType = tasks.taskType ? tasks.taskType.toString() : ''
				this.task.floorsAmount = tasks.floorsAmount ? this.maxObj.min : 0
				this.task.taskVideo = tasks.taskVideo ? tasks.taskVideo : ''
				this.task.taskPic = uni.getStorageSync('taskDrafts')[2] ? uni.getStorageSync('taskDrafts')[2] : ''
				this.task.telephone = tasks.telephone ? tasks.telephone : ''
				this.task.age = tasks.age ? tasks.age : ''
				this.task.disturbstatus = tasks.disturbstatus
				this.changeCurrentIndex = tasks.taskType ? tasks.taskType.toString() : ''
				if (this.task.disturbstatus == 1) {
					setTimeout(() => {
						this.newMsk = true
					}, 1000)
				}
				this.ShowAdd = uni.getStorageSync('taskDrafts')[1] ? uni.getStorageSync('taskDrafts')[1] : ''
				this.gwyqCheckboxItemSelected = tasks.tasklabel ? tasks.tasklabel.split(',') : []
				if (this.task.name != '') {
					this.progress += 10
					this.historyTitle = this.task.name
				}
				if (this.task.number != 0) {
					this.progress += 10
				}
				if (this.ShowAdd != '') {
					this.progress += 5
					this.showAddHistory = 1
				}
			},
			//保存任务草稿
			getTaskDrafts() {
				if (this.isRecordTaskDrafts) {
					uni.setStorageSync('taskDrafts', [this.task, this.ShowAdd, this.pictureList.join()])
				}
			},
			//任务草稿点击事件
			handleSt() {
				this.task.disturbstatus = this.task.disturbstatus == 0 ? 1 : 0
				if (this.task.disturbstatus == 1) {
					this.newMsk = true
				} else {
					this.newMsk = false
				}
			},
			changeNext() {
				this.hotTasks.sort(() => Math.random() - Math.random())
			},
			//删除任务草稿
			removeTaskDrafts() {
				uni.removeStorageSync('taskDrafts')
				this.isRecordTaskDrafts = false
			},
			//根据城市获取雇员最低价
			async getLabourPriceByCity(region) {
				region = {
					'count1': this.workTime,
					'region': region
				}
				let res = await this.$fetch(this.$api.city_data_user, region, 'POST')
				if (res.code) return uni.showToast({
					title: res.msg,
					icon: 'none'
				})
				this.time_lowest_amount = parseInt(res.msg)
			},
			//邀请雇员接单
			async invitationOrder(users) {
				if (users.length == 0) {
					return
				} else {
					for (let i = 0; i < users.length; i++) {
						let res = await this.$fetch(this.$api.invitation_order, {
							taskId: this.newTaskId,
							userIds: users[i],
						}, 'POST')
						if (res.code) return uni.showToast({
							title: res.msg,
							icon: 'none'
						})
					}
				}
			},
			// 接收任务时间
			// getTaskTime(timeList) {
			// 	// console.log(timeList)
			// 	this.task.startTime = timeList[0]
			// 	this.task.endTime = timeList[1]
			// 	this.isShowTimeSelect = false
			// 	this.isTaskTomorrowFlag = isTaskTomorrow(timeList[0], timeList[1])
			// 	this.startHour = this.task.startTime.split(' ')[1].split(':')[0]
			// 	this.startMinute = this.task.startTime.split(' ')[1].split(':')[1]
			// 	this.endHour = this.isTaskTomorrowFlag ? 24 + parseInt(this.task.endTime.split(' ')[1].split(':')[0]) :
			// 		this.task.endTime.split(' ')[1].split(':')[0]
			// 	this.endMinute = this.task.endTime.split(' ')[1].split(':')[1]
			// 	setTimeout(() => {
			// 		this.calWorkTime()
			// 	}, 500)
			// },
			// //接收任务时间
			getTaskTime(timeList) {
				console.log(timeList, 444444, )
				this.task.startTime = timeList[0]
				this.task.endTime = timeList[1]
				this.isShowTimeSelect = false
				this.timeFlag = timeList[2];
				this.isStartTaskTomorrowFlag = this.timeFlag;
				this.isTaskTomorrowFlag = timeList[2];
				this.isTaskTomorrowFlag2 = timeList[3];
				if (!this.isClickTime) {
					this.isClickTime = true
					this.progress += 10;
				}
				this.startHour = (this.isTaskTomorrowFlag == 100 && (parseInt(this.task.startTime.split(' ')[1].split(':')[
					0]))) || (this.isTaskTomorrowFlag == 101 && (24 + parseInt(this.task.startTime.split(' ')[1].split(
					':')[0])))
				this.startMinute = this.task.startTime.split(' ')[1].split(':')[1]
				this.endHour = (this.isTaskTomorrowFlag2 == 100 && this.task.endTime.split(' ')[1].split(':')[0]) || (this
					.isTaskTomorrowFlag2 == 101 && (24 + parseInt(this.task.endTime.split(' ')[1].split(':')[0]))) || (
					this.isTaskTomorrowFlag2 == 102 && (48 + parseInt(this.task.endTime.split(' ')[1].split(':')[0])))
				// this.endHour = [101].includes(this.isTaskTomorrowFlag2) ? 24 + parseInt(this.task.endTime.split(' ')[1]
				// 	.split(':')[0]) : this.task.endTime.split(' ')[1].split(':')[0]
				this.endMinute = this.task.endTime.split(' ')[1].split(':')[1]
				setTimeout(() => {
					this.calWorkTime()
				}, 500)
			},
			getAddressText(point) {
				this.latitude = point.latitude
				this.longitude = point.longitude
				console.log(9898);
				this.getAdcode(point) //由经纬度获取街道代码
				// var that = this
				myAmapFun.getRegeo({
					location: `${point.longitude},${point.latitude}`,
					success: data => {
						//成功回调
						this.addressText = data[0].regeocodeData.formatted_address
					},
					fail: function(info) {
						//失败回调
						console.log(88, info)
					}
				})
			},
			//计算是否是最低工价
			isLowest_Amount() {
				this.$u.debounce(() => {
					if (this.task.taskType == '0' && this.task.reward >= 10 && this.task.reward <= 999) {
						this.getYhReward(this.task.reward)
					}
					if (this.time_lowest_amount != -1) {
						if (this.task.reward != '') {
							if (this.task.reward < this.maxObj.min && this.task.taskType == '0') {
								this.isNextFillin = false
								return uni.showToast({
									title: '任务工价不能低于' + this.maxObj.min + '元/小时~',
									icon: 'none'
								})
							} else {
								this.isNextFillin = true
							}
						}
					} else {
						this.isNextFillin = false
					}
				}, 500)
			},
			//动态工价
			doPrice(e = 0) {
				this.$fetch(this.$api.view_the_lowest_wage_configuration, {
					taskType: e,
					region: this.task.region.slice(0, 6),
				}, "POST").then((res) => {
					let {
						code,
						msg,
						data
					} = res;
					if (code) {
						uni.showToast({
							title: msg,
							icon: "none",
						});
						return;
					}
					this.maxObj = data;
				});
			},
			goToBuyJiayou() {
				uni.navigateTo({
					url: '/pages/bossMonthCard/straightCard'
				})
			},
			gwyqCheckboxItemClick(string) {
				let item = `#${string}#`
				if (this.gwyqCheckboxItemSelected.includes(item)) {
					this.gwyqCheckboxItemSelected.splice(this.gwyqCheckboxItemSelected.indexOf(item), 1)
				} else {
					if (this.gwyqCheckboxItemSelected.length < 5) {
						this.gwyqCheckboxItemSelected.push(item)
					} else {
						uni.showToast({
							title: '最多选择5个标签',
							icon: 'none'
						})
					}
				}
				this.task.tasklabel = this.gwyqCheckboxItemSelected.join('')
			},
			onLoad(options) {
				console.log('name', options.title)
				this.getTaskPlaceholder()
				this.task.address = uni.getStorageSync('historyAdress')
				// this.getTaskCateList(); //获取工种列表
				this.doPrice();
				// 检测当前定位
				// #ifdef APP-PLUS
				this.checkPermission(); //检查定位权限
				// #endif
				this.getUserTankaung() //用户从主页进去 微弹窗
				this.getCardList()
				this.getData() // 发布任务时 缴纳保证金配置(元/人)
				this.refresh1()
				this.timeFlags = md5.hex_md5((Date.now() + uni.getStorageSync('token'))).toString()
				if (options.wdfb == 1) {
					this.wdfb = true
				}
				if (options.minNumber) {
					options.minNumber >= 1 ? this.minNumber = options.minNumber : this.minNumber = 1
				}
				this.taskId = options.taskId ? options.taskId : ''
				this.type = options.type ? options.type : ''
				if (options.source) {
					this.source = options.source
				} else {
					this.source = 4
				}
				if (this.type) {
					// 重新发布和修改
					this.task_detail()
					if (uni.getStorageSync('invitationStaff')) {
						this.isInvitation = true
						this.InvUsers = uni.getStorageSync('invitationStaff')
						uni.removeStorageSync('invitationStaff')
					}
				} else {
					this.task.telephone = uni.getStorageSync('userInfo').user.phonenumber
					if (uni.getStorageSync('taskDrafts')) {
						this.isShowTaskDrafts = true
					}
					// console.log('雇主用户信息userInfo.user', uni.getStorageSync('userInfo').user)
				}
				this.imgPath = uni.getStorageSync('imgPath')
				this.gwyqCheckboxItem = uni.getStorageSync('property_list_by_type').task_label.split(',')
				if (uni.getStorageSync('sendjob-voice') != true) {
					Voice('私下交易有风险，请谨慎!')
					uni.setStorageSync('sendjob-voice', true)
				}
				// this.timeList[0] = Array.from(Array(24), (v, k) => k < 10 ? '0' + k : k)
				// this.timeList[1] = Array.from(Array(6), (v, k) => k == 0 ? '00' : k * 10)
				this.getIsYouxian()
			},
			onShow() {
				if (!this.task.address) {
					let _this = this
					wx.getLocation({
						type: 'gcj02',
						success(res) {
							_this.task.lat = res.latitude; // 纬度
							_this.task.lng = res.longitude; // 经度               
							console.log('具体位置', res)
							//    使用高德地图逆地理编码服务进行地址解析
							wx.request({
								url: 'https://restapi.amap.com/v3/geocode/regeo',
								data: {
									key: 'd73cc951a96637a251a9a2446b48ce9c', // 替换为您自己的高德地图API密钥
									location: `${_this.task.lng},${_this.task.lat}`,
									//    extensions: 'all',
									//    output: 'json'
								},
								success(response) {
									// 由经纬度查询街道的行政代码
									uni.request({
										url: 'https://restapi.amap.com/v3/geocode/regeo?parameters',
										data: {
											key: 'd73cc951a96637a251a9a2446b48ce9c',
											location: _this.task.lng + ',' + _this.task.lat
										},
										success: res => {
											console.log(99912, res);
											_this.task.region = res.data.regeocode
												.addressComponent.adcode
											// console.log(113,this.region);
										},
										fail: (err) => {
											console.log('err', err);
										}
									})
									const result = response.data;
									if (result.status === '1' && result.info === 'OK') {
										const address = result.regeocode.formatted_address; // 具体地址
										_this.task.address = address
									} else {
										console.log('解析失败');
									}
								},
								fail(error) {
									console.error('请求失败', error);
								}
							});
						},
						fail() {
							// 获取位置信息失败
							console.log('失败');
						}
					});
				}
				try {
					this.$refs.popup.close();
				} catch (e) {
					//TODO handle the exception
				}
				let system = uni.getSystemInfoSync().platform;
				if (system === "ios") {
					this.isApple = true;
				}
				this.getUserInfo()
				this.getToday()
				this.getUploadToken()
				this.get_lately_task_name() //最近的工作名称
				this.getToDay()
				this.isBtnClick = false
				this.historyAddress = uni.getStorageSync('historyAddress') || ""
				this.historyLocation = decodeURIComponent(uni.getStorageSync('historyLocation')) || ""
				this.historyLat = uni.getStorageSync('historyLat') || ""
				this.historyLng = uni.getStorageSync('historyLng') || ""
				this.historyRegion = uni.getStorageSync('historyRegion') || ""
			},
			onReady() {
				console.log(this.task.lat, this.task.lng, '打印')
			},
		},
		updated() {
			if (this.updatedCount <= 0) {
				if (!this.type) {
					if (!this.isShowTaskDrafts && (this.task.name != '' || this.task.number != 1 || this.task.sex != 2 ||
							this.task.address != "")) {
						this.getTaskDrafts()
					}
				}
			} else {
				this.updatedCount--
			}
			if (this.isShowNextPage) {
				this.getNextFillin()
			} else {
				this.getFillin()
			}
		},
		// onUnload() {
		// 	if(this.isShowNextPage){
		// 		uni.navigateTo({
		// 				url: '/pages/app-employer/send-job/send-job'
		// 			})
		// 	}
		// },
		destroyed() {
			console.log('destroyed')
			clearInterval(this.timer2);
		},
		onPageScroll(res) {
			if (res.scrollTop == 0) {
				this.truexianshizt = 'relative'
			} else {
				if (this.truexianshizt != "fixed") {
					this.truexianshizt = 'fixed'
				}
			}
		},
	}
</script>
<style lang="less">
	.m-right-30 {
		margin-right: 30rpx;
	}

	.container {
		width: 100%;
		overflow: hidden;
		position: relative;

		.swiper {
			width: 100%;
			position: relative;
			bottom: 10rpx;
			left: 0;
		}

		.demo {
			position: relative;
			width: 100%;
			height: 100rpx;
			display: flex;
			align-items: center;
			justify-content: center;
			background: #fff;
			font-size: 26rpx;

			.left {
				float: left;
				position: absolute;
				width: max-content;
				height: max-content;
				top: 0;
				bottom: 0;
				left: 0;
				padding-left: 20rpx;
				width: 100rpx;
				margin: auto;

				image {
					width: 19rpx;
					height: 32rpx;
				}
			}
		}

		.head-progress {
			width: 100%;
			height: 134rpx;
			background: #FFFFFF;
			// border-radius: 0rpx 0rpx 0rpx 0rpx;
			opacity: 1;
			position: fixed;
			top: 0;
			display: flex;
			justify-content: center;
			align-items: center;
			position: relative;

			.strip {
				/* 父元素相对定位 */
				position: relative;
				width: 90vw;
				height: 8rpx;
				background-color: #F5F5F5;
				border-radius: 20rpx;

				.blue {
					height: 14rpx;
					background: linear-gradient(270deg, #FC361D 40%, #FCC928 70%);
					border-radius: 20rpx;

					// transition: all 0.3s ease-in;
					.text {
						display: flex;
						justify-content: center;
						align-items: center;
						width: 136rpx;
						height: 38rpx;
						background: #FFEDE6;
						font-size: 24rpx;
						font-family: PingFang SC-Regular, PingFang SC;
						font-weight: 400;
						color: #262626;
						border-radius: 24rpx 24rpx 24rpx 24rpx;
						// opacity: 0.1;
						z-index: 99;
						position: absolute;
						/* 定位方向：属性值 */
						top: -65rpx;
					}

					.proImg {
						width: 96rpx;
						height: 56rpx;
						/* 子元素绝对定位   */
						z-index: 99;
						position: absolute;
						/* 定位方向：属性值 */
						top: -22rpx;
					}
				}
			}

			.next {
				height: 80rpx;
				width: 80rpx;
				position: absolute;

				.next-head {
					position: absolute;
					top: 66rpx;
					right: -48rpx;
				}

				.next-head-fabu {
					position: absolute;
					top: 66rpx;
					right: -60rpx;
				}

				.nextImg {
					width: 100%;
					height: 100%;
				}

				text {
					// width: 60rpx;
					// position: absolute;
					// bottom: -26rpx;
					// height: 26rpx;
					font-size: 20rpx;
					font-family: PingFang SC-Bold, PingFang SC;
					font-weight: bold;
					color: #262626;
					// line-height: 0rpx;
				}
			}

			.nexttwo {
				position: absolute;
				right: 28rpx;
			}
		}

		// border: 1px solid;
		.title {
			height: 98rpx;
			background-color: #F2F2F2;
			font-size: 32rpx;
			font-weight: bold;
			color: #402110;
			line-height: 45rpx;
			display: flex;
			align-items: center;
			margin-left: 30rpx;
		}

		.base-info {
			padding: 20rpx 20rpx 0;
			border-radius: 24rpx;

			.item {
				display: flex;
				justify-content: space-between;
				align-items: center;
				height: 140rpx;
				width: 95%;
				margin: 0 auto;
				position: relative;
				background: #fff;
				opacity: 1;

				&>input {
					font-size: 32rpx;
					font-weight: bold;
					color: #402110;
					line-height: 45rpx;
					text-align: center;
					margin: 0;
				}

				.leftText {
					font-size: 32rpx;
					font-weight: 500;
					color: #402110;
					// line-height: 45rpx;
					margin-left: 30rpx;
					white-space: nowrap;
				}

				.renshu {
					height: 40rpx;
					width: 220rpx;
					display: flex;
					align-items: center;
					justify-content: flex-end;
					.m-right-30;

					.isred {
						color: #FC361D;
					}

					&>image {
						padding: 0 20rpx;
						height: 40rpx;
						width: 40rpx;
						border: 10rpx solid transparent;
					}

					&>input {
						font-size: 32rpx;
						font-weight: bold;
						color: #402110;
						line-height: 45rpx;
						text-align: center;
						margin: 0;
					}
				}

				input {
					text-align: right;
					font-size: 28rpx;
					font-weight: bold;
					color: #402110;
					line-height: 45rpx;
					// flex: 1;
					.m-right-30;
				}

				// &::before {
				// 	content: "";
				// 	position: absolute;
				// 	width: 690rpx;
				// 	left: 30rpx;
				// 	bottom: -1rpx;
				// 	height: 1rpx;
				// 	background: #ffff;
				// }
				.selcetSex1 {
					width: 52%;
					// border: 1px solid;
					// flex: 1;
					font-size: 28rpx;
					display: flex;
					justify-content: space-between;
					align-items: center;
					// border: 1px solid red;
					padding-right: 30rpx;

					.selected1 {
						width: 108rpx;
						height: 78rpx;
						display: flex;
						justify-content: center;
						align-items: center;
						background-color: #FCC928;
						border-radius: 8rpx;
						// font-weight: 600;
						// border: 1px solid red;
						// margin-right: 30rpx;
					}

					.selected3 {
						width: 108rpx;
						height: 78rpx;
						display: flex;
						justify-content: center;
						align-items: center;
						background-color: #FCC928;
						border-radius: 8rpx;
						// font-weight: 600;
						// border: 1px solid red;
						// margin-right: 30rpx;
					}

					.select3 {
						width: 108rpx;
						height: 78rpx;
						display: flex;
						justify-content: center;
						align-items: center;
						background-color: #F1F1F5;
						border-radius: 8rpx;
						// margin-right: 30rpx;
						// border: 1px solid;
					}

					.select1 {
						width: 108rpx;
						height: 78rpx;
						display: flex;
						justify-content: center;
						align-items: center;
						background-color: #F1F1F5;
						border-radius: 4rpx;
						// margin-right: 30rpx;
						// border: 1px solid;
					}
				}

				.selcetSex {
					.m-right-30;
					display: flex;
					flex-direction: row;
					align-items: center;

					&>.text-type {
						font-size: 28rpx;
						font-weight: 500;
						color: #ABABAB;
						line-height: 44rpx;
						display: flex;
						align-items: center;
					}

					&>image {
						width: 32rpx;
						height: 32rpx;
					}

					&>text {
						font-size: 28rpx;
						font-weight: 500;
						color: #402110;
						line-height: 45rpx;
						margin-left: 24rpx;
					}
				}
			}
		}

		.gwyq-checkbox {
			//width: 690rpx;
			padding: 40rpx 0 0 30rpx;
			background: #FFFFFF;
			// display: flex;
			// flex-direction: row;
			// flex-wrap: wrap;
			overflow-x: auto;
			display: -webkit-box;
			-webkit-overflow-scrolling: touch;
			// margin: 0.5rem 0.5rem
		}

		.gwyq-checkbox-item {
			padding: 0 17rpx;
			height: 48rpx;
			background: #F2F2F2;
			border-radius: 8rpx;
			margin-bottom: 10rpx;
			margin-right: 11rpx;
			font-size: 24rpx;
			font-weight: 500;
			color: #1A1A1A;
			line-height: 48rpx;
			text-align: center;
		}

		.gwyq-checkbox-item-selected {
			padding: 0 17rpx;
			height: 48rpx;
			background: rgba(252, 201, 40, 0.2);
			border-radius: 8rpx;
			margin-bottom: 10rpx;
			margin-right: 11rpx;
			font-size: 24rpx;
			font-weight: 500;
			color: #F08500;
			line-height: 48rpx;
			text-align: center;
		}

		.post-content {
			// border: 1px solid #000000;
			width: 95%;
			height: 80rpx;
			background: #FFFFFF;
			// width: 690rpx;
			padding: 30rpx 0rpx;
			font-size: 28rpx;
		}

		.post-video {
			// border: 1px solid #000000;
			// padding-top: 10rpx;
			padding-left: 30rpx;
			padding-bottom: 30rpx;
			background: #fff;
			display: flex;

			&>view:first-child {
				display: flex;
				align-items: center;

				video {
					.m-right-30;
					width: 500rpx;
					height: 210rpx;
				}

				// 删除视频
				&>view {
					padding: 10rpx 15rpx;
					border-radius: 15rpx;
					background-color: #FCC928;

					&:active {
						opacity: 0.7;
					}
				}
			}

			&>view {
				&>image {
					width: 210rpx;
					height: 210rpx;
				}
			}
		}

		.new-g-w {
			position: relative;
			width: 91%;
			height: 100%;
			padding: 0 36rpx;
			margin: 30rpx auto 0;

			.new-g-w-p {
				width: 100%;
				height: 100%;
				position: absolute;
				left: 0;
				bottom: 0;
				z-index: 9999999999999;
				background-color: rgba(0, 0, 0, 0.7);
				display: flex;
				justify-content: center;
				align-items: center;

				image {
					width: 70%;
					height: 100%;
				}
			}
		}

		.post-pics {
			// border: 1px solid #000000;
			padding-top: 10rpx;
			padding-left: 30rpx;
			background: #fff;
			display: flex;
			flex-wrap: wrap;

			&>view {
				// border: 1px solid #000000;
				width: 210rpx;
				height: 210rpx;
				position: relative;
				.m-right-30;
				margin-bottom: 30rpx;

				&>.close {
					position: absolute;
					right: -43rpx;
					top: -17rpx;
					width: 34rpx;
					height: 34rpx;
					z-index: 9;
				}
			}

			image {
				width: 210rpx;
				height: 210rpx;
				.m-right-30;

				&:nth-child(3n) {
					margin-right: 0;
				}
			}
		}

		.task-name-modal {

			// 遮罩层
			.mask {
				// border: 1px solid #000000;
				z-index: 9;
				width: 100vw;
				position: absolute;
				top: 420rpx;
				height: calc(100vh - 185rpx);
				pointer-events: none;
				background: transparent;
				transition: all .3s;

				&.show {
					background: rgba(0, 0, 0, 0.40);
					pointer-events: auto;
				}
			}

			// 白色筛选框
			&>.screen {
				box-sizing: border-box;
				width: 100%;
				border-left: 40rpx solid #f1f3f4;
				border-right: 40rpx solid #f1f3f4;
				position: absolute;
				z-index: 99;
				background: #FFFFFF;
				margin-top: -50rpx;
				top: 300rpx;
				overflow: hidden;

				// 统一的白色样式
				&>.filter-screen {
					// border: 1px solid #007AFF;
					height: 0;
					transition: height .3s;
					display: flex;

					&.show {
						height: 440rpx;
					}

					.task-title {
						font-size: 28rpx;
						font-weight: bold;
						color: #402110;
						line-height: 45rpx;
						margin-left: 30rpx;
						margin-top: 10rpx;
						margin-bottom: 20rpx;
					}

					.task-div {
						width: 98%;
						margin: 0 auto;
						display: flex;
						justify-content: flex-start;
						align-items: center;

						.task-div-inner {
							width: 33.33%;
							height: 50rpx;
							display: flex;
							justify-content: center;
							align-items: center;

							.task-content1 {
								width: 70%;
								padding: 0 15rpx;
								height: 64rpx;
								display: flex;
								justify-content: center;
								align-items: center;
								background: #F5F5F5;
								border-radius: 8rpx;
								position: relative;

								.task-content1-hot {
									position: absolute;
									right: -10rpx;
									top: 0;
									border-radius: 8rpx;
									background: #FF6547;

									text {
										padding: 0 6rpx;
										font-size: 20rpx;
										color: #fff;
									}
								}

								text {
									width: 90%;
									text-overflow: ellipsis;
									overflow: hidden;
									white-space: nowrap;
									text-align: center;
								}
							}
						}
					}
				}
			}
		}
	}

	.select {
		width: 28rpx;
		height: 28rpx;
		border: 2rpx solid #402110;
		opacity: 0.3;
		border-radius: 50%;
		margin-left: 50rpx;
	}

	.selected {
		width: 32rpx;
		height: 32rpx;
		background-image: url(http://images.linglinggong.net/icon1/hdg.png);
		background-repeat: repeat;
		background-size: 100% 100%;
		margin-left: 50rpx;
	}

	.jobDate {
		width: 228rpx;
		height: 72rpx;
		background-color: rgba(252, 201, 40, 0.1);
		border: 1rpx solid #FCC928;
		border-radius: 36rpx;
		font-size: 28rpx;
		font-weight: 500;
		color: #402110;
		line-height: 45rpx;
		display: flex;
		.m-right-30;
	}

	.dateSelect {
		width: 114rpx;
		height: 72rpx;
		display: flex;
		justify-content: center;
		align-items: center;
	}

	.dateSelected {
		background: #FCC928;
		//border: 1px solid #FCC928;
		width: 116rpx;
		height: 72rpx;
		display: flex;
		justify-content: center;
		align-items: center;
		border-radius: 34rpx;
	}

	.jobTimeStartEnd {
		font-size: 28rpx;
		font-weight: 500;
		color: #ABABAB;
		line-height: 45rpx;
		display: flex;
		align-items: center;
		.m-right-30;
	}

	.calcTime {
		font-size: 28rpx;
		color: #ABABAB;
		line-height: 45rpx;
	}

	.calcOkTime {
		font-size: 28rpx;
		color: #FC2828;
		line-height: 45rpx;
	}

	.rightAddDiv {
		width: 184rpx;
		height: 60rpx;
		border-radius: 8rpx 8rpx 8rpx 8rpx;
		opacity: 1;
		border: 2rpx solid #A5A5A5;
		font-size: 28rpx;
		margin-right: 26rpx;
		padding-left: 20rpx;
		display: flex;
		justify-content: center;
		align-items: center;
		position: relative;

		&:nth-last-child(1)>image {
			.m-right-30;
			width: 32rpx;
			height: 32rpx;
		}
	}

	.rightAddText {
		font-size: 27rpx;
		font-weight: 500;
		color: #ABABAB;
		line-height: 45rpx;
	}

	.completeAddress {
		width: 95%;
		margin: 0 auto;
		height: 134rpx;
		background: #FFFFFF;

		&>textarea {
			margin-left: 30rpx;
			// margin-top: 30rpx;
			width: 690rpx;
			height: 104rpx;
			font-size: 28rpx;
			font-weight: 500;
			color: #ABABAB;
			line-height: 45rpx;
		}
	}

	.selectJobAge {
		width: 100%;
		height: 570rpx;
		background: #FFFFFF;
		display: flex;
		position: fixed;
		bottom: 0;
	}

	.selectJobAge-header {
		width: 690rpx;
		height: 108rpx;
		background: #FFFFFF;
		margin-left: 30rpx;
		display: flex;
		justify-content: space-between;
		align-items: center;
		font-size: 36rpx;
		font-weight: bold;
		color: #000000;
		line-height: 45rpx;

		&>text:nth-child(1) {
			font-size: 32rpx;
			font-weight: 500;
			color: #ABABAB;
			line-height: 45rpx;
		}

		&>text:nth-child(2) {
			font-size: 36rpx;
			font-weight: bold;
			color: #000000;
			line-height: 45rpx;
		}

		&>text:nth-child(3) {
			font-size: 32rpx;
			font-weight: 500;
			color: #000000;
			line-height: 45rpx;
		}
	}

	.selectJobAge-body {
		height: 461rpx;
		width: 750rpx;
		display: flex;
		position: fixed;
		bottom: 0;
		left: 0;
		font-size: 36rpx;
		font-weight: bold;
		color: #000000;
		line-height: 45rpx;
		justify-content: center;
		align-items: center;
		flex-direction: column;
		column-gap: 20rpx;
	}

	.selectJobAge-item {
		width: 690rpx;
		height: 88rpx;
		background: #F2F2F2;
		border-radius: 8rpx;
		margin: 10rpx 0;
		display: flex;
		justify-content: center;
		align-items: center;
	}

	.timeUl {
		width: 340rpx;
		transform-style: preserve-3d;
		padding: 0;

		&>li {
			list-style: none;
			backface-visibility: hidden;
			height: 34rpx;
			text-align: center;
			width: 100%;
		}
	}

	.moreInfo {
		width: 100%;
		height: 98rpx;
		background: #F2F2F2;
		display: flex;
		align-items: center;

		&>text:nth-child(1) {
			margin-left: 30rpx;
			font-size: 32rpx;
			font-weight: bold;
			color: #402110;
			line-height: 45rpx;
		}

		&>image {
			width: 32rpx;
			height: 32rpx;
		}
	}

	.nextPage {
		width: 690rpx;
		height: 88rpx;
		background: #FCC928;
		border-radius: 12rpx;
		display: flex;
		justify-content: center;
		align-items: center;
		margin-top: 30rpx;
		margin-left: 30rpx;
		font-size: 36rpx;
		font-weight: bold;
		color: #402110;
	}

	.nextPageNofill {
		width: 690rpx;
		height: 88rpx;
		background: #ABABAB;
		border-radius: 12rpx;
		display: flex;
		justify-content: center;
		align-items: center;
		margin-top: 30rpx;
		margin-left: 30rpx;
		font-size: 36rpx;
		font-weight: bold;
		color: #FFFFFF;
	}

	.RecommendedItem {
		width: 100%;
		height: 90rpx;
		background-color: #FFF;
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	.RecommendedItem2 {
		// width: 750rpx;
		margin: 0 auto;
		width: 90.4%;
		height: 180rpx;
		background-color: #FFF;
		display: flex;
		flex-direction: column;
		align-items: center;

		.gradientBar {
			width: 690rpx;
			height: 6rpx;
			background: linear-gradient(90deg, #FFCF21, #FD4433);
			border-radius: 3rpx;
			position: absolute;
			left: 30rpx;
		}

		.RecommendedBar {
			width: 96%;
			height: 100%;
			// border: 1px solid;
			// height: 48rpx;
			// margin-top: 20rpx;
			display: flex;
			justify-content: center;
			align-items: center;

			// border: 1px solid red;
			.progressMove {
				width: 620rpx;
				height: 8rpx;
				background: linear-gradient(270deg, #4e9900 0%, #6ba107 46%, #fcc928 46%, #fcb426 80%, #fc6d21 80%, #fc431e 100%);
				border-radius: 4px;
				position: relative;

				.pimg-next {
					width: 26rpx;
					height: 17rpx;
					font-size: 24rpx;
					font-family: PingFang SC-Heavy, PingFang SC;
					font-weight: 800;
					color: #707070;
					// line-height: 0px;
					-webkit-background-clip: text;
					// -webkit-text-fill-color: transparent;
				}

				.pimg-next-w {
					position: absolute;
					top: 24rpx;
					left: 8rpx;
				}

				.pimg-next-t {
					position: absolute;
					top: 24rpx;
					left: 132rpx;
				}

				.pimg-next-s {
					position: absolute;
					top: 24rpx;
					right: 32rpx;
				}

				.wages {
					width: 44rpx;
					height: 44rpx;
					border-radius: 50%;
					// background-color: #000;
					position: absolute;
					top: 50%;
					transform: translateY(-50%);
					transition: all 0.2 ease-in;

					.wages-color {
						width: 130rpx;
						height: 42rpx;
						color: #FFFFFF;
						box-shadow: 0px 2rpx 12rpx 2rpx rgba(252, 73, 30, 0.3);
						border-radius: 8rpx 8rpx 8rpx 8rpx;
						opacity: 1;
						position: absolute;
						top: -45rpx;
						left: -40rpx;
						text-align: center;
					}

					.wages-color::after {
						content: '';
						width: 0;
						height: 0;
						border-top: 14rpx solid var(--bg);
						border-right: 12rpx solid transparent;
						border-left: 12rpx solid transparent;
						display: block;
						position: absolute;
						bottom: -12rpx;
						margin-left: 50%;
						left: -14rpx;
					}

					.wages-h {
						background: #FCB726 !important;
					}

					.wages-r {
						background: #FC491E !important;
					}

					.wages-z {
						background: #509900 !important;
					}

					.p-img {
						width: 100% !important;
						height: 100% !important;
					}
				}
			}

			.edit-gj-left {
				width: 41%;
				// padding-right: 20rpx;
				// border: 1rpx solid #11BC00;
				font-size: 26rpx;
				color: #000;
			}

			.showTjjgView-gao2 {
				// .showTjjgView;
				// flex: 1;
				// border: 1rpx solid #11BC00;
				display: flex;
				justify-content: center;
				align-items: center;
				height: 100%;

				.showTjjgView-gao2-item {
					display: flex;
					justify-content: flex-end;
					align-items: center;
					// flex: 1;
					padding: 0 10rpx;

					// margin: 0 10rpx;
					// border: 1px solid red;
					.gao2-item-left {
						color: #666;
						font-weight: 600;
						font-size: 24rpx;
						padding-right: 8rpx;
					}

					.gao2-item-right {
						padding: 4rpx 14rpx;
						border: 1px solid;
						border-radius: 6rpx;
						position: relative;

						.tuijian1 {
							position: absolute;
							width: 26rpx;
							height: 66rpx;
							display: flex;
							justify-content: center;
							align-items: center;
							text-align: center;
							font-size: 22rpx;
							background: #FCC928;
							// border-radius: 6rpx;
							border-bottom-right-radius: 6rpx;
							border-bottom-left-radius: 12rpx;
							border-top-left-radius: 6rpx;
							border-top-right-radius: 12rpx;
							left: -1rpx;
							top: -5rpx;
						}

						.yuan-icon {
							font-size: 26rpx;
							font-family: fantasy;
							font-weight: 400;
							color: #11BC00;
						}

						.gj-number {
							font-size: 38rpx;
							font-family: fantasy;
							font-weight: 600;
							color: #11BC00;
						}
					}
				}
			}
		}
	}

	.gradientBarNull {
		width: 100%;
		height: 6rpx;
		background: #F2F2F2;
		border-radius: 3rpx;
	}

	.gradientBar {
		width: 690rpx;
		height: 6rpx;
		background: linear-gradient(90deg, #FFCF21, #FD4433);
		border-radius: 3rpx;
		position: absolute;
		left: 30rpx;
	}

	.RecommendedBar {
		width: 100%;
		height: 48rpx;
		margin-top: 20rpx;
		display: flex;
		justify-content: space-between;
		align-items: center;

		&>text:nth-child(1) {
			color: #ABABAB;
			font-size: 24rpx;
			font-weight: 500;
			line-height: 45rpx;
		}

		&>text:nth-child(2) {
			margin-left: 6rpx;
			font-size: 24rpx;
			font-weight: 500;
			line-height: 45rpx;
			flex: 1;
		}
	}

	.RecommendedBtn {
		font-size: 24rpx;
		font-weight: 500;
		color: #402110;
		line-height: 45rpx;
		width: 129rpx;
		height: 48rpx;
		background: #FCC928;
		border-radius: 8rpx;
		display: flex;
		justify-content: center;
		align-items: center;
	}

	.showTjjgMask {
		width: 100vw;
		height: 100vh;
		background: rgba(0, 0, 0, 0.40);
		pointer-events: auto;
		position: fixed;
		top: 0;
		z-index: 999;
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
	}

	.showTjjg {
		width: 547rpx;
		height: 582rpx;
		background: #FFFFFF;
		border-radius: 12rpx;
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
	}

	.showTjjgText {
		font-size: 36rpx;
		font-weight: bold;
		color: #000000;
		line-height: 45rpx;
	}

	.showTjjgWorkTimeText {
		font-size: 24rpx;
		font-weight: 500;
		color: #7F7F7F;
		line-height: 24rpx;
		margin-top: 20rpx;
		margin-bottom: 30rpx;
	}

	.showTjjgView {
		width: 451rpx;
		height: 90rpx;
		border: 2rpx solid #FFB321;
		border-radius: 4rpx;
		margin-bottom: 20rpx;
		display: flex;
		align-items: center;
	}

	.showTjjgView-gao {
		.showTjjgView;
		border: 2rpx solid #11BC00;

		.tuijian {
			width: 78rpx;
			height: 28rpx;
			background: #FCC928;
			border-radius: 15rpx 0;
			position: absolute;
			left: 88rpx;
			transform: translateY(-50rpx);
			justify-content: center;
			align-items: center;
			font-size: 20rpx;
			font-weight: 500;
			color: #402110;
			line-height: 45rpx;
		}

		&>view {
			height: 50rpx;
			width: 395rpx;
			display: flex;
			align-items: flex-end;
			margin-left: 60rpx;

			&>text:nth-child(1) {
				line-height: 28rpx;
				font-size: 28rpx;
				font-weight: bold;
				color: #11BC00;
			}

			&>text:nth-child(2) {
				line-height: 50rpx;
				font-size: 60rpx;
				font-family: Impact;
				font-weight: 400;
				color: #11BC00;
				margin-right: 50rpx;
			}

			&>text:nth-child(3) {
				line-height: 20rpx;
				font-size: 20rpx;
				font-weight: 400;
				color: #11BC00;
				white-space: nowrap;
			}

			&>text:nth-child(4) {
				line-height: 24rpx;
				font-size: 24rpx;
				font-weight: bold;
				color: #11BC00;
				margin-left: 10rpx;
				margin-right: 111rpx;
			}
		}
	}

	.showTjjgView-zhong {
		.showTjjgView;

		&>view {
			height: 50rpx;
			width: 395rpx;
			display: flex;
			align-items: flex-end;
			margin-left: 60rpx;

			&>text:nth-child(1) {
				line-height: 28rpx;
				font-size: 28rpx;
				font-weight: bold;
				color: #FFB321;
			}

			&>text:nth-child(2) {
				line-height: 50rpx;
				font-size: 60rpx;
				font-family: Impact;
				font-weight: 400;
				color: #FFB321;
				margin-right: 50rpx;
			}

			&>text:nth-child(3) {
				line-height: 20rpx;
				font-size: 20rpx;
				font-weight: 400;
				color: #FFB321;
				white-space: nowrap;
			}

			&>text:nth-child(4) {
				line-height: 24rpx;
				font-size: 24rpx;
				font-weight: bold;
				color: #FFB321;
				margin-left: 10rpx;
				margin-right: 111rpx;
			}
		}
	}

	.showTjjgView-di {
		.showTjjgView;
		border: 2rpx solid #FD4733;

		&>view {
			height: 50rpx;
			width: 395rpx;
			display: flex;
			align-items: flex-end;
			margin-left: 60rpx;

			&>text:nth-child(1) {
				line-height: 28rpx;
				font-size: 28rpx;
				font-weight: bold;
				color: #FD4733;
			}

			&>text:nth-child(2) {
				line-height: 50rpx;
				font-size: 60rpx;
				font-family: Impact;
				font-weight: 400;
				color: #FD4733;
				margin-right: 50rpx;
			}

			&>text:nth-child(3) {
				line-height: 20rpx;
				font-size: 20rpx;
				font-weight: 400;
				color: #FD4733;
				white-space: nowrap;
			}

			&>text:nth-child(4) {
				line-height: 24rpx;
				font-size: 24rpx;
				font-weight: bold;
				color: #FD4733;
				margin-left: 10rpx;
				margin-right: 111rpx;
			}
		}
	}

	.minimumWageInfo-image {
		margin-left: 8rpx;
		width: 32rpx;
		height: 32rpx;
	}

	.minimumWageInfo-view {
		display: flex;
		justify-content: center;
		align-items: center;
	}

	.baodimask {
		z-index: 998;
		width: 100vw;
		height: 100vh;
		position: fixed;
		top: 0;
		background: rgba(0, 0, 0, 0.40);
		display: flex;
		justify-content: center;
		align-items: center;
	}

	.baodimask-alert {
		width: 630rpx;
		height: 751rpx;
		background: #FFFFFF;
		border-radius: 20rpx;
	}

	.baodimask-alert-close {
		width: 28rpx;
		height: 28rpx;
		margin: 28rpx;
	}

	.baodimask-alert-content {
		height: 587rpx;
		width: 534rpx;
		margin-top: 20rpx;
		margin-left: 48rpx;
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	.baodimask-alert-content-alertimage {
		width: 264rpx;
		height: 264rpx;
	}

	.baodimask-alert-content-text {
		margin-top: 79rpx;
		width: 530rpx;
		height: 84rpx;
		font-size: 32rpx;
		font-weight: 500;
		color: #010000;
		line-height: 60rpx;
		text-align: center;
	}

	.baodimask-alert-content-buton {
		width: 534rpx;
		height: 78rpx;
		background: #FCC928;
		border-radius: 8rpx;
		font-size: 32rpx;
		font-weight: bold;
		color: #402110;
		line-height: 78rpx;
		margin-top: 82rpx;
		text-align: center;
	}

	.yk_count {
		// width: 88rpx;
		padding: 0 10rpx;
		height: 40rpx;
		background: linear-gradient(45deg, #FF5628, #FF231C);
		border-radius: 14rpx 14rpx 14rpx 0px;
		font-size: 22rpx;
		font-weight: 400;
		color: #FFFFFF;
		line-height: 40rpx;
		text-align: center;
		margin-top: -10rpx;
	}

	.miandarao {
		width: 91%;
		height: 116rpx;
		background: #FFFFFF;
		margin: 20rpx auto 0;
		border-radius: 24rpx 24rpx 24rpx 24rpx;
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
	}

	.miandarao-info {
		margin: 0rpx 0 0 30rpx;
		display: flex;
		flex-direction: column;

		&>text:nth-child(1) {
			font-size: 32rpx;
			font-weight: bold;
			color: #11BC00;
			line-height: 45rpx;
		}

		&>text:nth-child(2) {
			font-size: 28rpx;
			font-weight: 400;
			color: #11BC00;
			line-height: 45rpx;
		}
	}

	.miandarao-button {
		width: 88rpx;
		height: 48rpx;
		background: #B5B5B5;
		border-radius: 24rpx;
		margin-right: 30rpx;
	}

	.miandarao-button-switch {
		width: 40rpx;
		height: 40rpx;
		background: #FFFFFF;
		border-radius: 50%;
		position: relative;
		margin: 4rpx;
	}

	.miandarao-button-selected {
		transform: rotate(180deg);
		background: #FCC928 !important;
	}

	.he-suan {
		width: 670rpx;
		height: 560rpx;
		// background-image: url('../../../static/he-suan-bg.png');
		background-size: 100% 100%;
		background-repeat: no-repeat;
		border-radius: 20rpx;
		display: flex;
		justify-content: center;
		align-items: flex-end;

		.he-suan-box {
			width: 80%;
			height: 50%;
			// border: 1px solid;
			margin-bottom: 60rpx;

			.he-suan-box-bottom {
				display: flex;
				justify-content: center;
				align-items: center;
				padding-top: 60rpx;

				.he-suan-box-bottom-left {
					flex: 1;
					display: flex;
					justify-content: center;
					align-items: center;
					margin: 0 15px;
					height: 78rpx;
					border-radius: 50rpx;
					font-size: 30rpx;
					border: 1px solid;
					color: #36D7A5;
				}
			}

			.he-suan-box-top {
				display: flex;
				justify-content: center;
				align-items: center;

				.he-suan-box-top-left {
					flex: 1;
					display: flex;
					justify-content: center;
					align-items: center;
					margin: 0 12px;
					height: 114rpx;
					border-radius: 10rpx;
					font-size: 44rpx;
					border: 1px solid;
					color: #36D7A5;
				}

				.he-suan-box-top-left2 {
					background: #36D7A5;
					color: #fff;
					padding: 4rpx 8rpx;
				}
			}
		}
	}

	.Mp_active {
		position: relative;
		top: 20rpx;
		float: left;
		width: 590rpx;
		box-sizing: border-box;
		overflow: hidden;

		.Mp_marquee {
			white-space: nowrap;
			font-size: 24rpx;
			animation-name: marquee;
			position: relative;
			animation-iteration-count: infinite;
			animation-duration: 10s;
			animation-timing-function: linear;
		}
	}

	@keyframes marquee {
		0% {
			left: 0rpx;
		}

		100% {
			left: -700rpx;
		}
	}

	.youxian {
		margin-top: 40rpx;
		text-align: left;
		padding-left: 30rpx;
		width: 100%;
		color: #333333;
		font-weight: bold;
		display: flex;
		align-items: center;

		.radio {
			width: 32rpx;
			height: 32rpx;
			border-radius: 6rpx;
			border: 2rpx solid #979797;
			margin-right: 20rpx;
			box-sizing: border-box;
		}

		image {
			width: 32rpx;
			height: 32rpx;
			margin-right: 20rpx;
		}
	}

	.iptstyle {
		width: 184rpx;
		height: 60rpx;
		border-radius: 8rpx 8rpx 8rpx 8rpx;
		opacity: 1;
		border: 2rpx solid #A5A5A5;
		font-size: 28rpx;
		padding-left: 20rpx;
		display: flex;
		justify-content: center;
		align-items: center;
		position: relative;
		margin-right: -276rpx !important;
		text-align: center !important;
	}

	.u-transition {
		transform: translateY(-10rpx)
	}
</style>